aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2022-07-07 08:14:40 +0200
committerMichael Ellerman <[email protected]>2022-07-28 16:22:14 +1000
commitccc1439b924bca5d5a5d81cf6b0d4b10b321282e (patch)
tree51a620560058e202827cfcfe233ee07d499bfed3 /lib/mpi/mpi-sub-ui.c
parentfde345e4d39a4f16697a8060564fff1dbac05035 (diff)
powerpc/platforms/83xx/suspend: Prevent unloading the driver
Returning an error in .remove() doesn't prevent a driver from being unloaded. On unbind this only results in an error message, but the device is remove anyhow. I guess the author's idea of just returning -EPERM in .remove() was to prevent unbinding a device. To achieve that set the suppress_bind_attrs driver property and drop the useless .remove callback. This is a preparation for making platform remove callbacks return void. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Acked-by: Scott Wood <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions