diff options
author | Tony Lindgren <tony@atomide.com> | 2012-09-07 19:53:15 (GMT) |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-09-13 01:06:30 (GMT) |
commit | aefaf7be498b9cfbd16e42932cdc52ab334241e0 (patch) | |
tree | b23f18b1f7044924f723a5f50e5ba7e24c153c65 | |
parent | f799a3d8fe170159257b75c1baf48a7c1f625d1d (diff) | |
download | linux-aefaf7be498b9cfbd16e42932cdc52ab334241e0.tar.xz |
W1: OMAP HDQ1W: Remove dependencies to mach/hardware.h
No need for hardcoded IRQ here.
We can't include mach headers for ARM common zImage support.
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | drivers/w1/masters/omap_hdq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index 4b0fcf3..fee195a 100644 --- a/drivers/w1/masters/omap_hdq.c +++ b/drivers/w1/masters/omap_hdq.c @@ -19,7 +19,6 @@ #include <linux/pm_runtime.h> #include <asm/irq.h> -#include <mach/hardware.h> #include "../w1.h" #include "../w1_int.h" @@ -644,7 +643,7 @@ static int omap_hdq_remove(struct platform_device *pdev) /* remove module dependency */ pm_runtime_disable(&pdev->dev); - free_irq(INT_24XX_HDQ_IRQ, hdq_data); + free_irq(platform_get_irq(pdev, 0), hdq_data); platform_set_drvdata(pdev, NULL); iounmap(hdq_data->hdq_base); kfree(hdq_data); |