mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
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>
This commit is contained in:
parent
9283a358cb
commit
56493c8166
|
|
@ -4466,7 +4466,6 @@ static void btusb_disconnect(struct usb_interface *intf)
|
|||
kfree(data);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int btusb_suspend(struct usb_interface *intf, pm_message_t message)
|
||||
{
|
||||
struct btusb_data *data = usb_get_intfdata(intf);
|
||||
|
|
@ -4620,7 +4619,6 @@ static int btusb_resume(struct usb_interface *intf)
|
|||
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEV_COREDUMP
|
||||
static void btusb_coredump(struct device *dev)
|
||||
|
|
@ -4637,10 +4635,8 @@ static struct usb_driver btusb_driver = {
|
|||
.name = "btusb",
|
||||
.probe = btusb_probe,
|
||||
.disconnect = btusb_disconnect,
|
||||
#ifdef CONFIG_PM
|
||||
.suspend = btusb_suspend,
|
||||
.resume = btusb_resume,
|
||||
#endif
|
||||
.suspend = pm_ptr(btusb_suspend),
|
||||
.resume = pm_ptr(btusb_resume),
|
||||
.id_table = btusb_table,
|
||||
.supports_autosuspend = 1,
|
||||
.disable_hub_initiated_lpm = 1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user