提交 4ee723a9 编写于 作者: F Fabio Estevam 提交者: Greg Kroah-Hartman

staging: imx-drm: ipu-common: Remove unused variable

Fix the following warning when building with W=1 option:

drivers/staging/imx-drm/ipu-v3/ipu-common.c: In function 'ipu_remove':
drivers/staging/imx-drm/ipu-v3/ipu-common.c:1145:19: warning: variable 'res' set but not used [-Wunused-but-set-variable]
Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c6b7ae55
...@@ -1142,9 +1142,6 @@ static int ipu_probe(struct platform_device *pdev) ...@@ -1142,9 +1142,6 @@ static int ipu_probe(struct platform_device *pdev)
static int ipu_remove(struct platform_device *pdev) static int ipu_remove(struct platform_device *pdev)
{ {
struct ipu_soc *ipu = platform_get_drvdata(pdev); struct ipu_soc *ipu = platform_get_drvdata(pdev);
struct resource *res;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
platform_device_unregister_children(pdev); platform_device_unregister_children(pdev);
ipu_submodules_exit(ipu); ipu_submodules_exit(ipu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册