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: btnxpuart: Remove unneeded CONFIG_PM ifdef

The functions are already disabled through the use of pm_ptr() when
CONFIG_PM is disabled, and will be removed from the final linked code
as not needed.

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

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Reviewed-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Bastien Nocera and committed by
Luiz Augusto von Dentz
04a4c885 d9f7c39c

+2 -4
+2 -4
drivers/bluetooth/btnxpuart.c
··· 1947 1947 hci_free_dev(hdev); 1948 1948 } 1949 1949 1950 - #ifdef CONFIG_PM_SLEEP 1951 - static int nxp_serdev_suspend(struct device *dev) 1950 + static int __maybe_unused nxp_serdev_suspend(struct device *dev) 1952 1951 { 1953 1952 struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev); 1954 1953 struct ps_data *psdata = &nxpdev->psdata; ··· 1961 1962 return 0; 1962 1963 } 1963 1964 1964 - static int nxp_serdev_resume(struct device *dev) 1965 + static int __maybe_unused nxp_serdev_resume(struct device *dev) 1965 1966 { 1966 1967 struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev); 1967 1968 struct ps_data *psdata = &nxpdev->psdata; ··· 1974 1975 ps_control(psdata->hdev, PS_STATE_AWAKE); 1975 1976 return 0; 1976 1977 } 1977 - #endif 1978 1978 1979 1979 #ifdef CONFIG_DEV_COREDUMP 1980 1980 static void nxp_serdev_coredump(struct device *dev)