Unverified Commit a6e23843 authored by Johan Hovold's avatar Johan Hovold Committed by Mark Brown
Browse files

spi: fix controller cleanup() documentation



The controller cleanup() callback is no longer called when releasing a
device, but rather when deregistering it (and on registration failures).

Fixes: c7299fea ("spi: Fix spi device unregister flow")
Cc: Saravana Kannan <saravanak@kernel.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260410154907.129248-3-johan@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent db357034
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -701,7 +701,7 @@ struct spi_controller {
	int			(*transfer)(struct spi_device *spi,
						struct spi_message *mesg);

	/* Called on release() to free memory provided by spi_controller */
	/* Called on deregistration to free memory provided by spi_controller */
	void			(*cleanup)(struct spi_device *spi);

	/*