PM: kill dev_pm_ops platform warning for now
PATCH 1/1 PM: kill dev_pm_ops platform warning for now
From: Magnus Damm <[email protected]>
Remove the platform device runtime dev_pm_ops warning for now. No point in upsetting users of non-rc kernels.
---
Suitable for 2.6.31-rc.
drivers/base/platform.c | 3 --- 1 file changed, 3 deletions(-)
drivers/base/platform.c +0 -3
@@ -483,9 +483,6 @@ int platform_driver_register(struct plat drv->driver.remove = platform_drv_remove;if (drv->shutdown) drv->driver.shutdown = platform_drv_shutdown; -if (drv->suspend || drv->resume) -pr_warning ("Platform driver '%s' needs updating - please use " -"dev_pm_ops\n" , drv->driver.name);return driver_register (&drv->driver); }
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>
Thanks for the patch, I modified the changelog a bit.
Greg, do you agree with the patch below?
Rafael
---
From: Magnus Damm <[email protected]>
Subject: PM / Driver Core: Kill dev_pm_ops platform warning for now
Commit 783ea7d4eeefe895f2731fe73ac951e94418927b
(Driver Core: Rework platform suspend/resume, print warning) added a warning message printed for platform drivers that use the legacy PM callbacks rather than struct dev_pm_ops. Unfortunately, this resulted in some confusion and made some people try to convert drivers by replacing the old callbacks with struct dev_pm_ops in automatic way, which generally is not a good idea.
Remove the platform device runtime dev_pm_ops warning for now, because it's annoying to users and it's not really necessary right now.
[rjw: Modified the changelog to be more informative.]
--- drivers/base/platform.c | 3 --- 1 file changed, 3 deletions(-)
drivers/base/platform.c +0 -3
@@ -483,9 +483,6 @@ int platform_driver_register(struct plat drv->driver.remove = platform_drv_remove;if (drv->shutdown) drv->driver.shutdown = platform_drv_shutdown; -if (drv->suspend || drv->resume) -pr_warning ("Platform driver '%s' needs updating - please use " -"dev_pm_ops\n" , drv->driver.name);return driver_register (&drv->driver); }
Greg KH
Acked-byQuoted 11 lines · Rafael J. Wysocki
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>Thanks for the patch, I modified the changelog a bit.
Greg, do you agree with the patch below?
Yes, feel free to add:
to the patch and forward it on.
Or do you need me to forward it?
thanks,
greg k-h
Greg KH
Acked-byQuoted 11 lines · Rafael J. Wysocki
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>Thanks for the patch, I modified the changelog a bit.
Greg, do you agree with the patch below?
Yes, feel free to add:
to the patch and forward it on.
Or do you need me to forward it?
thanks,
greg k-h
Quoted 11 lines · Greg KH
Quoted 10 lines · Rafael J. Wysocki
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>Thanks for the patch, I modified the changelog a bit.
Quoted 7 lines
Quoted 1 line
Greg, do you agree with the patch below?
Yes, feel free to add:
to the patch and forward it on.
Or do you need me to forward it?
If you have anything more to push to Linus, please push this patch along with it with my ACK. Otherwise, please let me know and I'll push it.
Thanks,
Rafael
Quoted 14 lines · Rafael J. Wysocki
Quoted 13 lines · Greg KH
Quoted 11 lines · Rafael J. Wysocki
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>Thanks for the patch, I modified the changelog a bit.
Greg, do you agree with the patch below?
Quoted 8 lines
Quoted 5 lines
Yes, feel free to add:
to the patch and forward it on.
Or do you need me to forward it?
If you have anything more to push to Linus, please push this patch along with it with my ACK. Otherwise, please let me know and I'll push it.
I do not have any more driver-core changes to push to Linus for 2.6.31, so please send it with your next push.
thanks,
greg k-h
Quoted 14 lines · Rafael J. Wysocki
Quoted 13 lines · Greg KH
Quoted 11 lines · Rafael J. Wysocki
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>Thanks for the patch, I modified the changelog a bit.
Greg, do you agree with the patch below?
Quoted 8 lines
Quoted 5 lines
Yes, feel free to add:
to the patch and forward it on.
Or do you need me to forward it?
If you have anything more to push to Linus, please push this patch along with it with my ACK. Otherwise, please let me know and I'll push it.
I do not have any more driver-core changes to push to Linus for 2.6.31, so please send it with your next push.
thanks,
greg k-h
Quoted 11 lines · Greg KH
Quoted 10 lines · Rafael J. Wysocki
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>Thanks for the patch, I modified the changelog a bit.
Quoted 7 lines
Quoted 1 line
Greg, do you agree with the patch below?
Yes, feel free to add:
to the patch and forward it on.
Or do you need me to forward it?
If you have anything more to push to Linus, please push this patch along with it with my ACK. Otherwise, please let me know and I'll push it.
Thanks,
Rafael
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Remove the platform device runtime
dev_pm_opswarning for now. No point in upsetting users of non-rc kernels.Signed-off-by Magnus Damm <[email protected]>
Thanks for the patch, I modified the changelog a bit.
Greg, do you agree with the patch below?
Rafael
---
From: Magnus Damm <[email protected]>
Subject: PM / Driver Core: Kill dev_pm_ops platform warning for now
Commit 783ea7d4eeefe895f2731fe73ac951e94418927b
(Driver Core: Rework platform suspend/resume, print warning) added a warning message printed for platform drivers that use the legacy PM callbacks rather than struct dev_pm_ops. Unfortunately, this resulted in some confusion and made some people try to convert drivers by replacing the old callbacks with struct dev_pm_ops in automatic way, which generally is not a good idea.
Remove the platform device runtime dev_pm_ops warning for now, because it's annoying to users and it's not really necessary right now.
[rjw: Modified the changelog to be more informative.]
--- drivers/base/platform.c | 3 --- 1 file changed, 3 deletions(-)
drivers/base/platform.c +0 -3
@@ -483,9 +483,6 @@ int platform_driver_register(struct plat drv->driver.remove = platform_drv_remove;if (drv->shutdown) drv->driver.shutdown = platform_drv_shutdown; -if (drv->suspend || drv->resume) -pr_warning ("Platform driver '%s' needs updating - please use " -"dev_pm_ops\n" , drv->driver.name);return driver_register (&drv->driver); }