On lis 04, 2018 20:24, Himanshu Jha wrote: > On Sun, Nov 04, 2018 at 11:49:00AM +0100, Slawomir Stepien wrote: > > devm_* APIs are device managed and make code simpler. > > > > Signed-off-by: Slawomir Stepien <sst@xxxxxxxxx> > > --- > > [] > > > Since v4: > > * on devm_add_action fail, call the action on error handling > > For such a use case, `devm_add_action_or_reset()` seems like a better > candidate. Thank you for that. > > + ret = devm_add_action(&spi->dev, ad7280_sw_power_down, st); > > + if (ret) { > > + ad7280_sw_power_down(st); > > + return ret; > > + } > > Also, you can suppress the `1/1` in sunject [PATCH v5 1/1] by passing > `-N` flag to `git format-patch`. I haven't even notice that 1/1. I will use -N when sending only one patch. Thanks! -- Slawomir Stepien