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: btmtksdio: Use pm_ptr instead of #ifdef CONFIG_PM

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

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Uwe Kleine-König and committed by
Luiz Augusto von Dentz
544a237a 502a5731

+1 -7
+1 -7
drivers/bluetooth/btmtksdio.c
··· 1472 1472 hci_free_dev(hdev); 1473 1473 } 1474 1474 1475 - #ifdef CONFIG_PM 1476 1475 static int btmtksdio_runtime_suspend(struct device *dev) 1477 1476 { 1478 1477 struct sdio_func *func = dev_to_sdio_func(dev); ··· 1541 1542 RUNTIME_PM_OPS(btmtksdio_runtime_suspend, btmtksdio_runtime_resume, NULL) 1542 1543 }; 1543 1544 1544 - #define BTMTKSDIO_PM_OPS (&btmtksdio_pm_ops) 1545 - #else /* CONFIG_PM */ 1546 - #define BTMTKSDIO_PM_OPS NULL 1547 - #endif /* CONFIG_PM */ 1548 - 1549 1545 static struct sdio_driver btmtksdio_driver = { 1550 1546 .name = "btmtksdio", 1551 1547 .probe = btmtksdio_probe, 1552 1548 .remove = btmtksdio_remove, 1553 1549 .id_table = btmtksdio_table, 1554 1550 .drv = { 1555 - .pm = BTMTKSDIO_PM_OPS, 1551 + .pm = pm_ptr(&btmtksdio_pm_ops), 1556 1552 } 1557 1553 }; 1558 1554