diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-20 17:30:15 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-03 12:38:05 -0500 |
commit | c4592ce4e8f69d78711d53f0a42ec1b4dbf00cde (patch) | |
tree | 14fd8901bd2c9913eba0096b179592e190d2aeed /drivers/mfd/mcp-sa11x0.c | |
parent | e36e26a8b761d1a601e284e2b5d8aff84de3b756 (diff) |
MFD: mcp-sa11x0: add .owner initializer
Patch partly taken from af9081ae64 (ARM: sa1100: Refactor mcp-sa11x0 to
use platform resources.) by Jochen Friedrich <jochen@scram.de>
Move the MODULE_ALIAS() alongside the other MODULE_* definitions, and
use DRIVER_NAME to ensure that the driver is consistently named.
Acked-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mfd/mcp-sa11x0.c')
-rw-r--r-- | drivers/mfd/mcp-sa11x0.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mfd/mcp-sa11x0.c b/drivers/mfd/mcp-sa11x0.c index 5373a7a835c6..703e76a77005 100644 --- a/drivers/mfd/mcp-sa11x0.c +++ b/drivers/mfd/mcp-sa11x0.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include <mach/assabet.h> | 28 | #include <mach/assabet.h> |
29 | 29 | ||
30 | #define DRIVER_NAME "sa11x0-mcp" | ||
30 | 31 | ||
31 | struct mcp_sa11x0 { | 32 | struct mcp_sa11x0 { |
32 | u32 mccr0; | 33 | u32 mccr0; |
@@ -227,18 +228,14 @@ static int mcp_sa11x0_resume(struct platform_device *dev) | |||
227 | return 0; | 228 | return 0; |
228 | } | 229 | } |
229 | 230 | ||
230 | /* | ||
231 | * The driver for the SA11x0 MCP port. | ||
232 | */ | ||
233 | MODULE_ALIAS("platform:sa11x0-mcp"); | ||
234 | |||
235 | static struct platform_driver mcp_sa11x0_driver = { | 231 | static struct platform_driver mcp_sa11x0_driver = { |
236 | .probe = mcp_sa11x0_probe, | 232 | .probe = mcp_sa11x0_probe, |
237 | .remove = mcp_sa11x0_remove, | 233 | .remove = mcp_sa11x0_remove, |
238 | .suspend = mcp_sa11x0_suspend, | 234 | .suspend = mcp_sa11x0_suspend, |
239 | .resume = mcp_sa11x0_resume, | 235 | .resume = mcp_sa11x0_resume, |
240 | .driver = { | 236 | .driver = { |
241 | .name = "sa11x0-mcp", | 237 | .name = DRIVER_NAME, |
238 | .owner = THIS_MODULE, | ||
242 | }, | 239 | }, |
243 | }; | 240 | }; |
244 | 241 | ||
@@ -247,6 +244,7 @@ static struct platform_driver mcp_sa11x0_driver = { | |||
247 | */ | 244 | */ |
248 | module_platform_driver(mcp_sa11x0_driver); | 245 | module_platform_driver(mcp_sa11x0_driver); |
249 | 246 | ||
247 | MODULE_ALIAS("platform:" DRIVER_NAME); | ||
250 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); | 248 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); |
251 | MODULE_DESCRIPTION("SA11x0 multimedia communications port driver"); | 249 | MODULE_DESCRIPTION("SA11x0 multimedia communications port driver"); |
252 | MODULE_LICENSE("GPL"); | 250 | MODULE_LICENSE("GPL"); |