]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: hym8563: include clkout code only if COMMON_CLK active
authorHeiko Stuebner <heiko@sntech.de>
Fri, 3 Jan 2014 03:10:23 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:23 +0000 (14:10 +1100)
commit535b9e1da1046014dba1bf13ff61ffacde800c4d
treeab8c09abb443dacb8ea422bbf33f09b165d74016
parent544b365338c64c96701b5cce70f0cef30b3cc130
rtc: hym8563: include clkout code only if COMMON_CLK active

The contents of clk-provide.h, struct clk_hw etc, are only available if
CONFIG_COMMON_CLK is selected.  Therefore IS_ENABLED(COMMON_CLK) is not
sufficient and real preprocessor conditions are necessary to keep the code
in question from being compiled on non-COMMON_CLK systems.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-hym8563.c