Skip to content

Commit 3aa7901

Browse files
NeerajSanjayKaleVudentz
authored andcommitted
Bluetooth: btnxpuart: Fix warnings for suspend and resume functions
This fixes the warnings 'nxp_serdev_resume' and 'nxp_serdev_suspend' defined but not used. Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202407100518.06Xxq5PK-lkp@intel.com/ Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 parent 658c56d commit 3aa7901

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/bluetooth/btnxpuart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,6 +1522,7 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
15221522
hci_free_dev(hdev);
15231523
}
15241524

1525+
#ifdef CONFIG_PM_SLEEP
15251526
static int nxp_serdev_suspend(struct device *dev)
15261527
{
15271528
struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev);
@@ -1539,6 +1540,7 @@ static int nxp_serdev_resume(struct device *dev)
15391540
ps_control(psdata->hdev, PS_STATE_AWAKE);
15401541
return 0;
15411542
}
1543+
#endif
15421544

15431545
static struct btnxpuart_data w8987_data __maybe_unused = {
15441546
.helper_fw_name = NULL,

0 commit comments

Comments
 (0)