From: Krzysztof Kozlowski Date: Sun, 24 Dec 2023 15:44:13 +0000 (+0100) Subject: media: s5p-mfc: drop useless static s5p_mfc_dev in s5p_mfc_pm.c X-Git-Tag: v6.9-rc1~101^2~216 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9e1b5ab82171cb30b79e0fdb75f5d9612c686c53;p=linux-block.git media: s5p-mfc: drop useless static s5p_mfc_dev in s5p_mfc_pm.c Pointer "struct s5p_mfc_dev" is stored in s5p_mfc_pm.c once and never used again. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c index 29b141d4a7a7..ecb3065c33c9 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c @@ -15,15 +15,12 @@ #include "s5p_mfc_pm.h" static struct s5p_mfc_pm *pm; -static struct s5p_mfc_dev *p_dev; int s5p_mfc_init_pm(struct s5p_mfc_dev *dev) { int i; pm = &dev->pm; - p_dev = dev; - pm->num_clocks = dev->variant->num_clocks; pm->clk_names = dev->variant->clk_names; pm->device = &dev->plat_dev->dev;