Skip to content

Commit

Permalink
Bluetooth: btnxpuart: Fix warnings for suspend and resume functions
Browse files Browse the repository at this point in the history
This fixes the warnings 'nxp_serdev_resume' and 'nxp_serdev_suspend'
defined but not used.

Signed-off-by: Neeraj Sanjay Kale <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
  • Loading branch information
Neeraj Sanjay Kale authored and Vudentz committed Jul 10, 2024
1 parent c6052c3 commit d752881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/bluetooth/btnxpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,7 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
hci_free_dev(hdev);
}

#ifdef CONFIG_PM_SLEEP
static int nxp_serdev_suspend(struct device *dev)
{
struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev);
Expand All @@ -1539,6 +1540,7 @@ static int nxp_serdev_resume(struct device *dev)
ps_control(psdata->hdev, PS_STATE_AWAKE);
return 0;
}
#endif

static struct btnxpuart_data w8987_data __maybe_unused = {
.helper_fw_name = NULL,
Expand Down

0 comments on commit d752881

Please sign in to comment.