Re: [PATCH] powerpc/52xx: Mark gpt driver as not removable
From: Michael Ellerman <hidden>
Date: 2022-07-29 13:23:58
From: Michael Ellerman <hidden>
Date: 2022-07-29 13:23:58
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