Skip to content

Commit

Permalink
memory: atmel-sdramc: use builtin_platform_driver to simplify the code
Browse files Browse the repository at this point in the history
Use the builtin_platform_driver() macro to make the code simpler.

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
  • Loading branch information
Wei Yongjun authored and alexandrebelloni committed Oct 20, 2016
1 parent ecc2d43 commit af69240
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/memory/atmel-sdramc.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,4 @@ static struct platform_driver atmel_ramc_driver = {
},
};

static int __init atmel_ramc_init(void)
{
return platform_driver_register(&atmel_ramc_driver);
}
device_initcall(atmel_ramc_init);
builtin_platform_driver(atmel_ramc_driver);

0 comments on commit af69240

Please sign in to comment.