Skip to content

Commit 210c1a7

Browse files
committed
net: wireless: rockchip_wlan: fix compilation warning for !PM_SLEEP
Change-Id: Ia37c81cc6cabe3bd4ea6048fd9102ea36808dd5b Signed-off-by: Tao Huang <huangtao@rock-chips.com>
1 parent c8fa9b3 commit 210c1a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_sdmmc_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static const struct sdio_device_id bcmsdh_sdmmc_ids[] = {
232232

233233
MODULE_DEVICE_TABLE(sdio, bcmsdh_sdmmc_ids);
234234

235-
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)) && defined(CONFIG_PM)
235+
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)) && defined(CONFIG_PM_SLEEP)
236236
static int bcmsdh_sdmmc_suspend(struct device *pdev)
237237
{
238238
int err;
@@ -346,7 +346,7 @@ static struct sdio_driver bcmsdh_sdmmc_driver = {
346346
.remove = bcmsdh_sdmmc_remove,
347347
.name = "bcmsdh_sdmmc",
348348
.id_table = bcmsdh_sdmmc_ids,
349-
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)) && defined(CONFIG_PM)
349+
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)) && defined(CONFIG_PM_SLEEP)
350350
.drv = {
351351
.pm = &bcmsdh_sdmmc_pm_ops,
352352
},

0 commit comments

Comments
 (0)