On Sat, Apr 22, 2006 at 02:08:23PM +0100, Jonathan McDowell wrote:
[Which tree should I be trying to submit this to? The patch is against and works fine with 2.6.17-rc2]
I prefer the following PM defines, so there is only one block of CONFIG_PM
#ifdef CONFIG_PM int foo_suspend(...) { }
int foo_resume(...) { }
#else #define foo_suspend NULL #define foo_resume NULL #endif
+static struct platform_driver foo_driver = {
- .probe = foo_probe,
- .remove = foo_remove,
- .suspend = foo_suspend,
- .resume = foo_resume,
+};