Re: [PATCH v2] ath10k: fix build error when hwmon is off

2015-01-09 Thread Kalle Valo
Kalle Valo writes: > 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 Ap

[PATCH v2] ath10k: fix build error when hwmon is off

2015-01-07 Thread Kalle Valo
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 --- drivers/net/wireless/ath/ath10k/therm