Message ID | 1411736250-29252-1-git-send-email-zhangfei.gao@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Sep 26, 2014 at 08:57:30PM +0800, Zhangfei Gao wrote: > Add dependence to solve build error in arch like ia64 > error: implicit declaration of function 'readl_relaxed' & 'writel_relaxed' > > Change CONFIG_PM to CONFIG_PM_SLEEP to solve > warning: 'hix5hd2_ir_suspend' & 'hix5hd2_ir_resume' defined but not used There is work currently in progress (in linux-next) to provide asm-generic accessors for the above.
On 09/26/2014 09:12 PM, Russell King - ARM Linux wrote: > On Fri, Sep 26, 2014 at 08:57:30PM +0800, Zhangfei Gao wrote: >> Add dependence to solve build error in arch like ia64 >> error: implicit declaration of function 'readl_relaxed' & 'writel_relaxed' >> >> Change CONFIG_PM to CONFIG_PM_SLEEP to solve >> warning: 'hix5hd2_ir_suspend' & 'hix5hd2_ir_resume' defined but not used > > There is work currently in progress (in linux-next) to provide > asm-generic accessors for the above. Thanks Russell for the info. Have found the patch set about "asm-generic: io: implement relaxed accessor macros as conditional wrappers". That's great. Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig index 8ce08107a69d..28fb2cb34e8d 100644 --- a/drivers/media/rc/Kconfig +++ b/drivers/media/rc/Kconfig @@ -166,7 +166,7 @@ config IR_ENE config IR_HIX5HD2 tristate "Hisilicon hix5hd2 IR remote control" - depends on RC_CORE + depends on RC_CORE && ARM help Say Y here if you want to use hisilicon hix5hd2 remote control. To compile this driver as a module, choose M here: the module will be diff --git a/drivers/media/rc/ir-hix5hd2.c b/drivers/media/rc/ir-hix5hd2.c index 94967d0e0478..c1d8527ace92 100644 --- a/drivers/media/rc/ir-hix5hd2.c +++ b/drivers/media/rc/ir-hix5hd2.c @@ -16,11 +16,6 @@ #include <linux/regmap.h> #include <media/rc-core.h> -/* Allow the driver to compile on all architectures */ -#ifndef writel_relaxed -# define writel_relaxed writel -#endif - #define IR_ENABLE 0x00 #define IR_CONFIG 0x04 #define CNT_LEADS 0x08 @@ -294,7 +289,7 @@ static int hix5hd2_ir_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int hix5hd2_ir_suspend(struct device *dev) { struct hix5hd2_ir_priv *priv = dev_get_drvdata(dev);
Add dependence to solve build error in arch like ia64 error: implicit declaration of function 'readl_relaxed' & 'writel_relaxed' Change CONFIG_PM to CONFIG_PM_SLEEP to solve warning: 'hix5hd2_ir_suspend' & 'hix5hd2_ir_resume' defined but not used Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> --- drivers/media/rc/Kconfig | 2 +- drivers/media/rc/ir-hix5hd2.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-)