hwspinlock: sprd: use module_platform_driver() instead postcore initcall
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Fri, 30 Oct 2020 03:46:54 +0000 (11:46 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 3 Nov 2020 00:04:06 +0000 (18:04 -0600)
commit8308678ebde1cbca9fb628ba2e7b6e4ea0b15acf
tree3050bba2e1c4659ca56c349b5e7e8c6372d6634a
parent3116a9931fa6fa067986a2cb0cc447c58530b1f0
hwspinlock: sprd: use module_platform_driver() instead postcore initcall

The hardware spinlock devices are defined in the DT, there's no need for
init calls order, remove boilerplate code by using module_platform_driver.

Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20201030034654.15775-3-zhang.lyra@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/sprd_hwspinlock.c