From 979b9e6c84ac1d0ed3aade577f8a6b20f71f01dd Mon Sep 17 00:00:00 2001 From: Jianqun Xu Date: Tue, 31 Jan 2023 16:33:06 +0800 Subject: [PATCH] media: rockchip: subdev-itf: remove empty runtime suspend/resume drivers/media/platform/rockchip/cif/subdev-itf.c:1172:12: warning: 'sditf_runtime_resume' defined but not used [-Wunused-function] error, forbidden warning:subdev-itf.c:1172 1172 | static int sditf_runtime_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~ drivers/media/platform/rockchip/cif/subdev-itf.c:1167:12: warning: 'sditf_runtime_suspend' defined but not used [-Wunused-function] error, forbidden warning:subdev-itf.c:1167 1167 | static int sditf_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jianqun Xu Change-Id: I537818f182741704e55f0bb59c623e1118bf5838 --- drivers/media/platform/rockchip/cif/subdev-itf.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/media/platform/rockchip/cif/subdev-itf.c b/drivers/media/platform/rockchip/cif/subdev-itf.c index 519dc5c17ad0..eac2af4d2abf 100644 --- a/drivers/media/platform/rockchip/cif/subdev-itf.c +++ b/drivers/media/platform/rockchip/cif/subdev-itf.c @@ -1189,21 +1189,6 @@ static int rkcif_subdev_remove(struct platform_device *pdev) return 0; } -static int sditf_runtime_suspend(struct device *dev) -{ - return 0; -} - -static int sditf_runtime_resume(struct device *dev) -{ - return 0; -} - -static const struct dev_pm_ops rkcif_subdev_pm_ops = { - SET_RUNTIME_PM_OPS(sditf_runtime_suspend, - sditf_runtime_resume, NULL) -}; - static const struct of_device_id rkcif_subdev_match_id[] = { { .compatible = "rockchip,rkcif-sditf", @@ -1217,7 +1202,6 @@ struct platform_driver rkcif_subdev_driver = { .remove = rkcif_subdev_remove, .driver = { .name = "rkcif_sditf", - .pm = &rkcif_subdev_pm_ops, .of_match_table = rkcif_subdev_match_id, }, };