[E3-hacking] Re: [PATCH] [LEDS] Amstrad Delta LED support
Ben Dooks
ben at fluff.org.uk
Sun Apr 23 13:38:50 BST 2006
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,
> +};
--
Ben (ben at fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
More information about the e3-hacking
mailing list