diff options
Diffstat (limited to 'drivers/w1/masters/omap_hdq.c')
-rw-r--r-- | drivers/w1/masters/omap_hdq.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index a7e3b706b9d3..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; |
@@ -687,6 +689,7 @@ static int omap_hdq_remove(struct platform_device *pdev) | |||
687 | 689 | ||
688 | if (hdq_data->hdq_usecount) { | 690 | if (hdq_data->hdq_usecount) { |
689 | dev_dbg(&pdev->dev, "removed when use count is not zero\n"); | 691 | dev_dbg(&pdev->dev, "removed when use count is not zero\n"); |
692 | mutex_unlock(&hdq_data->hdq_mutex); | ||
690 | return -EBUSY; | 693 | return -EBUSY; |
691 | } | 694 | } |
692 | 695 | ||