Skip to content

Commit

Permalink
omap: mailbox: standarize on 'omap-mailbox'
Browse files Browse the repository at this point in the history
omap{1,2}-mailbox are modules that provide the 'omap-mailbox' driver.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
  • Loading branch information
Felipe Contreras authored and Hiroshi DOYU committed Aug 4, 2010
1 parent 14476bd commit d742709
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static struct resource mbox_resources[] = {
};

static struct platform_device mbox_device = {
.name = "omap1-mailbox",
.name = "omap-mailbox",
.id = -1,
.num_resources = ARRAY_SIZE(mbox_resources),
.resource = mbox_resources,
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap1/mailbox.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Mailbox reservation modules for DSP
* Mailbox reservation modules for OMAP1
*
* Copyright (C) 2006-2009 Nokia Corporation
* Written by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Expand Down Expand Up @@ -179,7 +179,7 @@ static struct platform_driver omap1_mbox_driver = {
.probe = omap1_mbox_probe,
.remove = __devexit_p(omap1_mbox_remove),
.driver = {
.name = "omap1-mailbox",
.name = "omap-mailbox",
},
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static int omap4_mbox_resources_sz = ARRAY_SIZE(omap4_mbox_resources);
#endif

static struct platform_device mbox_device = {
.name = "omap2-mailbox",
.name = "omap-mailbox",
.id = -1,
};

Expand Down
6 changes: 2 additions & 4 deletions arch/arm/mach-omap2/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include <plat/mailbox.h>
#include <mach/irqs.h>

#define DRV_NAME "omap2-mailbox"

#define MAILBOX_REVISION 0x000
#define MAILBOX_SYSCONFIG 0x010
#define MAILBOX_SYSSTATUS 0x014
Expand Down Expand Up @@ -451,7 +449,7 @@ static struct platform_driver omap2_mbox_driver = {
.probe = omap2_mbox_probe,
.remove = __devexit_p(omap2_mbox_remove),
.driver = {
.name = DRV_NAME,
.name = "omap-mailbox",
},
};

Expand All @@ -472,4 +470,4 @@ MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("omap mailbox: omap2/3/4 architecture specific functions");
MODULE_AUTHOR("Hiroshi DOYU <Hiroshi.DOYU@nokia.com>");
MODULE_AUTHOR("Paul Mundt");
MODULE_ALIAS("platform:"DRV_NAME);
MODULE_ALIAS("platform:omap2-mailbox");

0 comments on commit d742709

Please sign in to comment.