power: reset: st-poweroff: use builtin_platform_driver() to simplify code
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 7 Aug 2023 13:19:47 +0000 (21:19 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 12 Sep 2023 18:25:54 +0000 (20:25 +0200)
commit70c81c37cf252798bef5fe047a57129ff6a2b31b
tree0c854bead20caed997da6fa43a955c81789f124d
parent8e511f42ac9cdab84c692bcd0f9e0c55c75b1856
power: reset: st-poweroff: use builtin_platform_driver() to simplify code

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

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230807131951.3443880-2-yangyingliang@huawei.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/st-poweroff.c