net: wireless: iwlegacy: fix build error for il_pm_ops
authorYijing Wang <wangyijing@huawei.com>
Fri, 31 May 2013 06:05:32 +0000 (14:05 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 14:20:57 +0000 (10:20 -0400)
commit71aa5bba83f81722e7f6bfaeda16b983ba8a0cc2
treeaf9f5ad0eb81366a6ee83179eada272424997155
parent87ccee46fabd235c2bac3652dee009e8f791dc10
net: wireless: iwlegacy: fix build error for il_pm_ops

Fix build error for il_pm_ops if CONFIG_PM is set
but CONFIG_PM_SLEEP is not set.

ERROR: "il_pm_ops" [drivers/net/wireless/iwlegacy/iwl4965.ko] undefined!
ERROR: "il_pm_ops" [drivers/net/wireless/iwlegacy/iwl3945.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: netdev@vger.kernel.org
Cc: linux-wireless@vger.kernel.org
Cc: Jingoo Han <jg1.han@samsung.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/common.h