Skip to content

Commit

Permalink
BCM2708: vcio: Do not print messages in module init
Browse files Browse the repository at this point in the history
It is not common practice to print messages from a
module init function that only register a driver.
Remove obsolete module alias.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
  • Loading branch information
notro authored and popcornmix committed Jun 7, 2015
1 parent 71c6a72 commit 30e7622
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions arch/arm/mach-bcm2708/vcio.c
Expand Up @@ -403,15 +403,7 @@ static struct platform_driver bcm_mbox_driver = {

static int __init bcm_mbox_init(void)
{
int ret;

pr_info("mailbox: Broadcom VideoCore Mailbox driver\n");

ret = platform_driver_register(&bcm_mbox_driver);
if (ret)
pr_err(DRIVER_NAME ": failed to register on platform\n");

return ret;
return platform_driver_register(&bcm_mbox_driver);
}

static void __exit bcm_mbox_exit(void)
Expand All @@ -425,4 +417,3 @@ module_exit(bcm_mbox_exit);
MODULE_AUTHOR("Gray Girling");
MODULE_DESCRIPTION("ARM I/O to VideoCore processor");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:bcm-mbox");

0 comments on commit 30e7622

Please sign in to comment.