Commit 6a7f7f27 authored by Yang Yingliang's avatar Yang Yingliang Committed by Sebastian Reichel
Browse files

power: reset: axxia-reset: use builtin_platform_driver() to simplify code



The axxia_reset_init() doesn't do anything special, so it can use the
builtin_platform_driver() macro to eliminate boilerplate code.

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230807131951.3443880-5-yangyingliang@huawei.com


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 764db161
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -80,9 +80,4 @@ static struct platform_driver axxia_reset_driver = {
		.of_match_table = of_match_ptr(of_axxia_reset_match),
	},
};

static int __init axxia_reset_init(void)
{
	return platform_driver_register(&axxia_reset_driver);
}
device_initcall(axxia_reset_init);
builtin_platform_driver(axxia_reset_driver);