diff options
Diffstat (limited to 'drivers/w1/masters')
-rw-r--r-- | drivers/w1/masters/Kconfig | 2 | ||||
-rw-r--r-- | drivers/w1/masters/ds1wm.c | 1 | ||||
-rw-r--r-- | drivers/w1/masters/ds2482.c | 2 | ||||
-rw-r--r-- | drivers/w1/masters/ds2490.c | 1 | ||||
-rw-r--r-- | drivers/w1/masters/mxc_w1.c | 5 | ||||
-rw-r--r-- | drivers/w1/masters/omap_hdq.c | 6 | ||||
-rw-r--r-- | drivers/w1/masters/w1-gpio.c | 1 |
7 files changed, 12 insertions, 6 deletions
diff --git a/drivers/w1/masters/Kconfig b/drivers/w1/masters/Kconfig index 3195fb8b7d9a..80b3b123dd7f 100644 --- a/drivers/w1/masters/Kconfig +++ b/drivers/w1/masters/Kconfig | |||
@@ -60,7 +60,7 @@ config W1_MASTER_GPIO | |||
60 | 60 | ||
61 | config HDQ_MASTER_OMAP | 61 | config HDQ_MASTER_OMAP |
62 | tristate "OMAP HDQ driver" | 62 | tristate "OMAP HDQ driver" |
63 | depends on ARCH_OMAP2430 || ARCH_OMAP34XX | 63 | depends on ARCH_OMAP2430 || ARCH_OMAP3 |
64 | help | 64 | help |
65 | Say Y here if you want support for the 1-wire or HDQ Interface | 65 | Say Y here if you want support for the 1-wire or HDQ Interface |
66 | on an OMAP processor. | 66 | on an OMAP processor. |
diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index 37f08c850608..6b85e7fefa43 100644 --- a/drivers/w1/masters/ds1wm.c +++ b/drivers/w1/masters/ds1wm.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
21 | #include <linux/mfd/core.h> | 21 | #include <linux/mfd/core.h> |
22 | #include <linux/mfd/ds1wm.h> | 22 | #include <linux/mfd/ds1wm.h> |
23 | #include <linux/slab.h> | ||
23 | 24 | ||
24 | #include <asm/io.h> | 25 | #include <asm/io.h> |
25 | 26 | ||
diff --git a/drivers/w1/masters/ds2482.c b/drivers/w1/masters/ds2482.c index 406caa6a71cb..e5f74416d4b7 100644 --- a/drivers/w1/masters/ds2482.c +++ b/drivers/w1/masters/ds2482.c | |||
@@ -214,7 +214,7 @@ static int ds2482_wait_1wire_idle(struct ds2482_data *pdev) | |||
214 | (++retries < DS2482_WAIT_IDLE_TIMEOUT)); | 214 | (++retries < DS2482_WAIT_IDLE_TIMEOUT)); |
215 | } | 215 | } |
216 | 216 | ||
217 | if (retries > DS2482_WAIT_IDLE_TIMEOUT) | 217 | if (retries >= DS2482_WAIT_IDLE_TIMEOUT) |
218 | printk(KERN_ERR "%s: timeout on channel %d\n", | 218 | printk(KERN_ERR "%s: timeout on channel %d\n", |
219 | __func__, pdev->channel); | 219 | __func__, pdev->channel); |
220 | 220 | ||
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c index 59ad6e95af8f..02bf7bf7160b 100644 --- a/drivers/w1/masters/ds2490.c +++ b/drivers/w1/masters/ds2490.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
24 | #include <linux/mod_devicetable.h> | 24 | #include <linux/mod_devicetable.h> |
25 | #include <linux/usb.h> | 25 | #include <linux/usb.h> |
26 | #include <linux/slab.h> | ||
26 | 27 | ||
27 | #include "../w1_int.h" | 28 | #include "../w1_int.h" |
28 | #include "../w1.h" | 29 | #include "../w1.h" |
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c index 65244c02551b..a3b6a74c67a7 100644 --- a/drivers/w1/masters/mxc_w1.c +++ b/drivers/w1/masters/mxc_w1.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
23 | #include <linux/clk.h> | 23 | #include <linux/clk.h> |
24 | #include <linux/slab.h> | ||
24 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
25 | #include <linux/io.h> | 26 | #include <linux/io.h> |
26 | 27 | ||
@@ -102,7 +103,7 @@ static u8 mxc_w1_ds2_touch_bit(void *data, u8 bit) | |||
102 | return ((__raw_readb(ctrl_addr)) >> 3) & 0x1; | 103 | return ((__raw_readb(ctrl_addr)) >> 3) & 0x1; |
103 | } | 104 | } |
104 | 105 | ||
105 | static int __init mxc_w1_probe(struct platform_device *pdev) | 106 | static int __devinit mxc_w1_probe(struct platform_device *pdev) |
106 | { | 107 | { |
107 | struct mxc_w1_device *mdev; | 108 | struct mxc_w1_device *mdev; |
108 | struct resource *res; | 109 | struct resource *res; |
@@ -166,7 +167,7 @@ failed_clk: | |||
166 | /* | 167 | /* |
167 | * disassociate the w1 device from the driver | 168 | * disassociate the w1 device from the driver |
168 | */ | 169 | */ |
169 | static int mxc_w1_remove(struct platform_device *pdev) | 170 | static int __devexit mxc_w1_remove(struct platform_device *pdev) |
170 | { | 171 | { |
171 | struct mxc_w1_device *mdev = platform_get_drvdata(pdev); | 172 | struct mxc_w1_device *mdev = platform_get_drvdata(pdev); |
172 | struct resource *res; | 173 | struct resource *res; |
diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index 0d92969404c3..3a7e9ff8a746 100644 --- a/drivers/w1/masters/omap_hdq.c +++ b/drivers/w1/masters/omap_hdq.c | |||
@@ -12,9 +12,11 @@ | |||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <linux/slab.h> | ||
15 | #include <linux/err.h> | 16 | #include <linux/err.h> |
16 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
17 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/sched.h> | ||
18 | 20 | ||
19 | #include <asm/irq.h> | 21 | #include <asm/irq.h> |
20 | #include <mach/hardware.h> | 22 | #include <mach/hardware.h> |
@@ -72,7 +74,7 @@ struct hdq_data { | |||
72 | int init_trans; | 74 | int init_trans; |
73 | }; | 75 | }; |
74 | 76 | ||
75 | static int __init omap_hdq_probe(struct platform_device *pdev); | 77 | static int __devinit omap_hdq_probe(struct platform_device *pdev); |
76 | static int omap_hdq_remove(struct platform_device *pdev); | 78 | static int omap_hdq_remove(struct platform_device *pdev); |
77 | 79 | ||
78 | static struct platform_driver omap_hdq_driver = { | 80 | static struct platform_driver omap_hdq_driver = { |
@@ -558,7 +560,7 @@ static void omap_w1_write_byte(void *_hdq, u8 byte) | |||
558 | return; | 560 | return; |
559 | } | 561 | } |
560 | 562 | ||
561 | static int __init omap_hdq_probe(struct platform_device *pdev) | 563 | static int __devinit omap_hdq_probe(struct platform_device *pdev) |
562 | { | 564 | { |
563 | struct hdq_data *hdq_data; | 565 | struct hdq_data *hdq_data; |
564 | struct resource *res; | 566 | struct resource *res; |
diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c index 6f8866d6a905..fcbe742188a5 100644 --- a/drivers/w1/masters/w1-gpio.c +++ b/drivers/w1/masters/w1-gpio.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/slab.h> | ||
14 | #include <linux/w1-gpio.h> | 15 | #include <linux/w1-gpio.h> |
15 | 16 | ||
16 | #include "../w1.h" | 17 | #include "../w1.h" |