mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
502a5731d3
commit
544a237ada
1 changed files with 1 additions and 7 deletions
|
|
@ -1472,7 +1472,6 @@ static void btmtksdio_remove(struct sdio_func *func)
|
|||
hci_free_dev(hdev);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int btmtksdio_runtime_suspend(struct device *dev)
|
||||
{
|
||||
struct sdio_func *func = dev_to_sdio_func(dev);
|
||||
|
|
@ -1542,18 +1541,13 @@ static const struct dev_pm_ops btmtksdio_pm_ops = {
|
|||
RUNTIME_PM_OPS(btmtksdio_runtime_suspend, btmtksdio_runtime_resume, NULL)
|
||||
};
|
||||
|
||||
#define BTMTKSDIO_PM_OPS (&btmtksdio_pm_ops)
|
||||
#else /* CONFIG_PM */
|
||||
#define BTMTKSDIO_PM_OPS NULL
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
static struct sdio_driver btmtksdio_driver = {
|
||||
.name = "btmtksdio",
|
||||
.probe = btmtksdio_probe,
|
||||
.remove = btmtksdio_remove,
|
||||
.id_table = btmtksdio_table,
|
||||
.drv = {
|
||||
.pm = BTMTKSDIO_PM_OPS,
|
||||
.pm = pm_ptr(&btmtksdio_pm_ops),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue