OSDN Git Service

power/reset: at91-reset: allow compiling as a module
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 11 Aug 2015 09:12:47 +0000 (11:12 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 22 Sep 2015 13:18:52 +0000 (15:18 +0200)
commit6e64180a7c0219d769e05b6dbe5af4a073c1eb92
tree03a6570a935350d4da0b0d5e7cc321d8254176c4
parenteacd8d09db7f4504eea6b5fdc55a8fe5eaf62bed
power/reset: at91-reset: allow compiling as a module

It was not possible to compile at91-reset as a module. Implement .remove()
to allow it. Also switch to module_platform_driver_probe() as it is not
hotpluggable.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/reset/Kconfig
drivers/power/reset/at91-reset.c