Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: btusb: Use pm_ptr instead of #ifdef CONFIG_PM

This increases build coverage and allows to drop an #ifdef.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Bastien Nocera and committed by
Luiz Augusto von Dentz
56493c81 9283a358

+2 -6
+2 -6
drivers/bluetooth/btusb.c
··· 4466 4466 kfree(data); 4467 4467 } 4468 4468 4469 - #ifdef CONFIG_PM 4470 4469 static int btusb_suspend(struct usb_interface *intf, pm_message_t message) 4471 4470 { 4472 4471 struct btusb_data *data = usb_get_intfdata(intf); ··· 4619 4620 4620 4621 return err; 4621 4622 } 4622 - #endif 4623 4623 4624 4624 #ifdef CONFIG_DEV_COREDUMP 4625 4625 static void btusb_coredump(struct device *dev) ··· 4635 4637 .name = "btusb", 4636 4638 .probe = btusb_probe, 4637 4639 .disconnect = btusb_disconnect, 4638 - #ifdef CONFIG_PM 4639 - .suspend = btusb_suspend, 4640 - .resume = btusb_resume, 4641 - #endif 4640 + .suspend = pm_ptr(btusb_suspend), 4641 + .resume = pm_ptr(btusb_resume), 4642 4642 .id_table = btusb_table, 4643 4643 .supports_autosuspend = 1, 4644 4644 .disable_hub_initiated_lpm = 1,