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>
This commit is contained in:
Alexandre Belloni
2015-08-11 11:12:47 +02:00
committed by Sebastian Reichel
부모 eacd8d09db
커밋 6e64180a7c
2개의 변경된 파일15개의 추가작업 그리고 4개의 파일을 삭제

파일 보기

@@ -23,7 +23,7 @@ config POWER_RESET_AT91_POWEROFF
SoCs
config POWER_RESET_AT91_RESET
bool "Atmel AT91 reset driver"
tristate "Atmel AT91 reset driver"
depends on ARCH_AT91
default SOC_AT91SAM9 || SOC_SAMA5
help