]> git.baikalelectronics.ru Git - kernel.git/commit
misc: xilinx-sdfec: convert to module_platform_driver()
authorHarshal Chaudhari <harshalchau04@gmail.com>
Sun, 10 May 2020 16:43:08 +0000 (22:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 14:20:01 +0000 (16:20 +0200)
commit27b2c2ef3b2b68a10f841c0345d4525180689c21
tree7f43cc2234ccf701ae563a0edcf739387a69781a
parentf42fef4bc4a8ed0e78a5798e984561e7a6d185f8
misc: xilinx-sdfec: convert to module_platform_driver()

The driver init and exit function don't do anything besides registering
and unregistering the platform driver, so the module_platform_driver()
macro could just be used instead of having separate functions.

Signed-off-by: Harshal Chaudhari <harshalchau04@gmail.com>
Acked-by: Dragan Cvetic <dragan.cvetic@xilinx.com>
Link: https://lore.kernel.org/r/20200510164308.31358-1-harshalchau04@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/xilinx_sdfec.c