Skip to content

Commit

Permalink
sparc: kernel: use builtin_platform_driver
Browse files Browse the repository at this point in the history
Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
geliangtang authored and davem330 committed Dec 12, 2016
1 parent e8f4aa6 commit b1ebb97
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arch/sparc/kernel/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,4 @@ static struct platform_driver power_driver = {
},
};

static int __init power_init(void)
{
return platform_driver_register(&power_driver);
}

device_initcall(power_init);
builtin_platform_driver(power_driver);

0 comments on commit b1ebb97

Please sign in to comment.