diff options
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index d5f2a8118df3..14537ffd8af3 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -61,7 +61,7 @@ static struct resource omap3_mbox_resources[] = { | |||
61 | }; | 61 | }; |
62 | 62 | ||
63 | static struct platform_device mbox_device = { | 63 | static struct platform_device mbox_device = { |
64 | .name = "mailbox", | 64 | .name = "omap2-mailbox", |
65 | .id = -1, | 65 | .id = -1, |
66 | }; | 66 | }; |
67 | 67 | ||
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 44e9101ab691..0b8476ba95fd 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -234,7 +234,7 @@ static struct omap_mbox mbox_iva_info = { | |||
234 | }; | 234 | }; |
235 | #endif | 235 | #endif |
236 | 236 | ||
237 | static int __init omap2_mbox_probe(struct platform_device *pdev) | 237 | static int __devinit omap2_mbox_probe(struct platform_device *pdev) |
238 | { | 238 | { |
239 | struct resource *res; | 239 | struct resource *res; |
240 | int ret; | 240 | int ret; |
@@ -257,7 +257,7 @@ static int __init omap2_mbox_probe(struct platform_device *pdev) | |||
257 | goto err_dsp; | 257 | goto err_dsp; |
258 | } | 258 | } |
259 | 259 | ||
260 | ret = omap_mbox_register(&mbox_dsp_info); | 260 | ret = omap_mbox_register(&pdev->dev, &mbox_dsp_info); |
261 | if (ret) | 261 | if (ret) |
262 | goto err_dsp; | 262 | goto err_dsp; |
263 | 263 | ||
@@ -271,7 +271,7 @@ static int __init omap2_mbox_probe(struct platform_device *pdev) | |||
271 | goto err_iva1; | 271 | goto err_iva1; |
272 | } | 272 | } |
273 | mbox_iva_info.irq = res->start; | 273 | mbox_iva_info.irq = res->start; |
274 | ret = omap_mbox_register(&mbox_iva_info); | 274 | ret = omap_mbox_register(&pdev->dev, &mbox_iva_info); |
275 | if (ret) | 275 | if (ret) |
276 | goto err_iva1; | 276 | goto err_iva1; |
277 | } | 277 | } |
@@ -285,7 +285,7 @@ err_dsp: | |||
285 | return ret; | 285 | return ret; |
286 | } | 286 | } |
287 | 287 | ||
288 | static int omap2_mbox_remove(struct platform_device *pdev) | 288 | static int __devexit omap2_mbox_remove(struct platform_device *pdev) |
289 | { | 289 | { |
290 | #if defined(CONFIG_ARCH_OMAP2420) | 290 | #if defined(CONFIG_ARCH_OMAP2420) |
291 | omap_mbox_unregister(&mbox_iva_info); | 291 | omap_mbox_unregister(&mbox_iva_info); |
@@ -297,9 +297,9 @@ static int omap2_mbox_remove(struct platform_device *pdev) | |||
297 | 297 | ||
298 | static struct platform_driver omap2_mbox_driver = { | 298 | static struct platform_driver omap2_mbox_driver = { |
299 | .probe = omap2_mbox_probe, | 299 | .probe = omap2_mbox_probe, |
300 | .remove = omap2_mbox_remove, | 300 | .remove = __devexit_p(omap2_mbox_remove), |
301 | .driver = { | 301 | .driver = { |
302 | .name = "mailbox", | 302 | .name = "omap2-mailbox", |
303 | }, | 303 | }, |
304 | }; | 304 | }; |
305 | 305 | ||
@@ -319,3 +319,4 @@ module_exit(omap2_mbox_exit); | |||
319 | MODULE_LICENSE("GPL v2"); | 319 | MODULE_LICENSE("GPL v2"); |
320 | MODULE_DESCRIPTION("omap mailbox: omap2/3 architecture specific functions"); | 320 | MODULE_DESCRIPTION("omap mailbox: omap2/3 architecture specific functions"); |
321 | MODULE_AUTHOR("Hiroshi DOYU <Hiroshi.DOYU@nokia.com>, Paul Mundt"); | 321 | MODULE_AUTHOR("Hiroshi DOYU <Hiroshi.DOYU@nokia.com>, Paul Mundt"); |
322 | MODULE_ALIAS("platform:omap2-mailbox"); | ||