# Re: \[PATCH 5/5\] spi: make remove callback a void function

- List: linux-fbdev
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-fbdev/2022/03/1689767/t

## Re: \[PATCH 5/5\] spi: make remove callback a void function

- From: Pavel Machek \<hidden\>
- Date: 2022-03-02 07:30:25 
- Message: https://ratatoskr.run/linux-fbdev/2022/03/1689767.md

```text
Hi!

> The value returned by an spi driver's remove function is mostly ignored.
> (Only an error message is printed if the value is non-zero that the
> error is ignored.)
> 
> So change the prototype of the remove function to return no value. This
> way driver authors are not tempted to assume that passing an error to
> the upper layer is a good idea. All drivers are adapted accordingly.
> There is no intended change of behaviour, all callbacks were prepared to
> return 0 before.

Acked-by: Pavel Machek <redacted>
									Pavel
-- 
http://www.livejournal.com/~pavelmachek
```
