Uwe Kleine-König 4ab0293c96 ARM: mmp: Fix failure to remove sram device
[ Upstream commit 4036b29a146b2749af3bb213b003eb69f3e5ecc4 ]

Make sure in .probe() to set driver data before the function is left to
make it possible in .remove() to undo the actions done.

This fixes a potential memory leak and stops returning an error code in
.remove() that is ignored by the driver core anyhow.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:24:02 +02:00
..
2019-10-17 16:36:10 +02:00
2019-10-17 16:36:10 +02:00
2020-05-12 20:28:03 -07:00
2019-10-17 16:36:11 +02:00
2019-10-17 16:36:11 +02:00
2020-05-12 20:28:03 -07:00
2018-11-30 15:40:22 -08:00
2020-05-12 20:28:03 -07:00