From: Andrew Morton Be conventional. Cc: David Brownell Cc: Mauro Carvalho Chehab Cc: Michael Buesch Cc: Stephen Rothwell Signed-off-by: Andrew Morton --- drivers/gpio/bt8xxgpio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/gpio/bt8xxgpio.c~gpio-add-bt8xxgpio-driver-checkpatch-fixes-cleanup drivers/gpio/bt8xxgpio.c --- a/drivers/gpio/bt8xxgpio.c~gpio-add-bt8xxgpio-driver-checkpatch-fixes-cleanup +++ a/drivers/gpio/bt8xxgpio.c @@ -308,6 +308,9 @@ static int bt8xxgpio_resume(struct pci_d return 0; } +#else +#define bt8xxgpio_suspend NULL +#define bt8xxgpio_resume NULL #endif /* CONFIG_PM */ static struct pci_device_id bt8xxgpio_pci_tbl[] = { @@ -324,10 +327,8 @@ static struct pci_driver bt8xxgpio_pci_d .id_table = bt8xxgpio_pci_tbl, .probe = bt8xxgpio_probe, .remove = bt8xxgpio_remove, -#ifdef CONFIG_PM .suspend = bt8xxgpio_suspend, .resume = bt8xxgpio_resume, -#endif }; static int bt8xxgpio_init(void) _