omap/hsmmc: constify dev_pm_ops
Subsystems (2)
PATCH 1/1 omap/hsmmc: constify dev_pm_ops
dev_pm_ops is not supposed to change at runtime. Marking it constant.
Signed-off-by Doug Wilson <[email protected]>
--- drivers/mmc/host/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/omap_hsmmc.c +1 -1
@@ -2322,7 +2322,7 @@ static int omap_hsmmc_runtime_resume(struct device *dev)return 0 ; } -static struct dev_pm_ops omap_hsmmc_dev_pm_ops = { +static const struct dev_pm_ops omap_hsmmc_dev_pm_ops = {SET_SYSTEM_SLEEP_PM_OPS (omap_hsmmc_suspend, omap_hsmmc_resume) .runtime_suspend = omap_hsmmc_runtime_suspend, .runtime_resume = omap_hsmmc_runtime_resume,
Signature · 1 line
2.7.4
Quoted 4 lines · Doug Wilson
dev_pm_opsis not supposed to change at runtime. Marking it constant.Signed-off-by Doug Wilson <[email protected]>
This doesn't apply on my next branch, please re-base it.
Kind regards
Uffe
Quoted 20 lines
--- drivers/mmc/host/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/omap_hsmmc.c +1
-2@@ -2322,7 +2322,7 @@ static int omap_hsmmc_runtime_resume(struct device *dev)return 0 ; } -static struct dev_pm_ops omap_hsmmc_dev_pm_ops = { +static const struct dev_pm_ops omap_hsmmc_dev_pm_ops = {SET_SYSTEM_SLEEP_PM_OPS (omap_hsmmc_suspend, omap_hsmmc_resume) .runtime_suspend = omap_hsmmc_runtime_suspend, .runtime_resume = omap_hsmmc_runtime_resume, --2.7.4
Quoted 4 lines
Quoted 2 lines
Signed-off-by Doug Wilson <[email protected]>This doesn't apply on my next branch, please re-base it.
is this your next-branch :kernel/git/ulfh/mmc.git ?
- Doug
Quoted 9 lines
Quoted 9 lines
drivers/mmc/host/omap_hsmmc.c +1
-2-static struct dev_pm_ops omap_hsmmc_dev_pm_ops = { +static const struct dev_pm_ops omap_hsmmc_dev_pm_ops = {SET_SYSTEM_SLEEP_PM_OPS (omap_hsmmc_suspend, omap_hsmmc_resume) .runtime_suspend = omap_hsmmc_runtime_suspend, .runtime_resume = omap_hsmmc_runtime_resume, --2.7.4
Quoted 6 lines · Doug Wilson
Quoted 4 lines
Quoted 2 lines
Signed-off-by Doug Wilson <[email protected]>This doesn't apply on my next branch, please re-base it.
is this your next-branch :kernel/git/ulfh/mmc.git ?
Correct!
Quoted 4 lines
Quoted 2 lines
is this your next-branch :kernel/git/ulfh/mmc.git ?
Correct!
The fix is already in your tree. I think you can ignore this patch.
- Doug.