powerpc/ep8248e: Mark driver as non removable
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 26 Jul 2023 08:14:42 +0000 (10:14 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2023 12:22:19 +0000 (22:22 +1000)
commitbbfa509d632946578d4f19aa2cedf1ca2f34565d
tree83b101a92805e00213ae06fe856cf41bb8ab89f1
parent54f30b83fe627453082f15d83d7820b28b2d24bb
powerpc/ep8248e: Mark driver as non removable

Instead of resorting to BUG() ensure that the driver isn't unbound by
suppressing its bind and unbind sysfs attributes. As the driver is
built-in there is no way to remove a device once bound.

As a nice side effect this allows to drop the remove function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230726081442.461026-1-u.kleine-koenig@pengutronix.de
arch/powerpc/platforms/82xx/ep8248e.c