coresight: dummy: simplify the code with module_platform_driver
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 4 Aug 2023 09:27:09 +0000 (17:27 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 4 Aug 2023 13:17:30 +0000 (14:17 +0100)
commit28a03fae6e524d39fec14fea1ee67b86f4870658
tree0e21a5c6b3c956ea9445e137cb3b2686c01c7d5e
parentfd380097cdb305582b7a1f9476391330299d2c59
coresight: dummy: simplify the code with module_platform_driver

The init/exit() of driver only calls platform_driver_register/unregister,
it can be simpilfied with module_platform_driver.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230804092709.1359264-1-yangyingliang@huawei.com
drivers/hwtracing/coresight/coresight-dummy.c