From: Kalle Valo Date: Wed, 7 Jan 2015 15:04:10 +0000 (+0200) Subject: ath10k: fix build error when hwmon is off X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~130^2~62^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96bba98393f9;p=pandora-kernel.git 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 --- Reading git-diff-tree failed