]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix build error when hwmon is off
authorKalle Valo <kvalo@qca.qualcomm.com>
Wed, 7 Jan 2015 15:04:10 +0000 (17:04 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 9 Jan 2015 16:12:36 +0000 (18:12 +0200)
commit1455c5005ba1523a0dd2bf3f61d61f66705f4559
tree213eaf2e7cda3f5b5d1b5d78bae7b23dacabd0a0
parent456a6450f8bf3a816ce8b97415e2fba08f67a5e5
ath10k: fix build error when hwmon is off

kbuild reported a linking error:

ERROR: "devm_hwmon_device_register_with_groups"
[drivers/net/wireless/ath/ath10k/ath10k_core.ko] undefined!

Fix it by returning early and letting the compiler to optimise out the function
call.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/thermal.c