linux/arch/powerpc/platforms/52xx
Uwe Kleine-König 1978c48495 powerpc/52xx: Mark gpt driver as not removable
Returning an error code (here -EBUSY) from a remove callback doesn't
prevent the driver from being unloaded. The only effect is that an error
message is emitted and the driver is removed anyhow.

So instead drop the remove function (which is equivalent to returning zero)
and set the suppress_bind_attrs property to make it impossible to unload
the driver via sysfs.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220612213400.159257-1-u.kleine-koenig@pengutronix.de
2022-07-18 23:35:25 +10:00
..
efika.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
Kconfig powerpc: Rename PPC_NATIVE to PPC_HASH_MMU_NATIVE 2021-12-02 22:57:22 +11:00
lite5200_pm.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
lite5200_sleep.S powerpc/52xx: Fix an invalid ASM expression ('addi' used instead of 'add') 2021-04-23 01:38:03 +10:00
lite5200.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
Makefile powerpc/Makefiles: Convert ifeq to ifdef where possible 2018-08-08 00:32:36 +10:00
media5200.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc52xx_common.c powerpc/52xx: Remove dead code, i.e. mpc52xx_get_xtal_freq() 2022-06-22 12:51:49 +10:00
mpc52xx_gpt.c powerpc/52xx: Mark gpt driver as not removable 2022-07-18 23:35:25 +10:00
mpc52xx_lpbfifo.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc52xx_pci.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc52xx_pic.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc52xx_pm.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc52xx_sleep.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpc5200_simple.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00