[PATCH] powerpc/52xx: Mark gpt driver as not removable

Michael Ellerman patch-notifications at ellerman.id.au
Fri Jul 29 23:01:54 AEST 2022


On Sun, 12 Jun 2022 23:34:00 +0200, Uwe Kleine-König wrote:
> 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.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/52xx: Mark gpt driver as not removable
      https://git.kernel.org/powerpc/c/1978c48495171165453a7c90d1345c1d8d776d02

cheers


More information about the Linuxppc-dev mailing list