Re: [PATCH lora-next 03/10] net: lora: sx1301: convert to devm registration of netdev

2018-08-08 Thread Andreas Färber
Am 07.08.2018 um 19:32 schrieb Ben Whitten: > diff --git a/drivers/net/lora/sx1301.c b/drivers/net/lora/sx1301.c > index 49958f0..54bfc31 100644 > --- a/drivers/net/lora/sx1301.c > +++ b/drivers/net/lora/sx1301.c [...] > @@ -885,7 +889,7 @@ static int sx1301_probe(struct spi_device *spi) >

[PATCH lora-next 03/10] net: lora: sx1301: convert to devm registration of netdev

2018-08-07 Thread Ben Whitten
From: Ben Whitten We allow the devres framework handle the clean removal of resources on teardown of the device, in this case the SPI device, saving lengthy unwind code and improving clarity. Signed-off-by: Ben Whitten --- drivers/net/lora/sx1301.c | 87