On Tue, 9 Sep 2014 15:46:31 +0200 (CEST) Peter Meerwald <pmeerw@xxxxxxxxxx> wrote: > > +static int axp288_gpadc_remove(struct platform_device *pdev) > > +{ > > + struct iio_dev *indio_dev = platform_get_drvdata(pdev); > > + > > + iio_device_unregister(indio_dev); > > + iio_map_array_unregister(indio_dev); > > axp288_gpadc_enable(axp2xx->regmap, false); on a second thought, we should not disable the adc even on driver removal. otherwise, internal fuel gauge will be affected. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html