iio: adc: aspeed: set driver data when adc probe.
authorBilly Tsai <billy_tsai@aspeedtech.com>
Tue, 31 Aug 2021 07:14:44 +0000 (15:14 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Sep 2021 11:02:11 +0000 (12:02 +0100)
commiteb795cd97365a3d3d9da3926d234a7bc32a3bb15
treefb82f4f1919cf965d1a02f1d3bd3fabbfb3d37a4
parentfa002b364981b49d04e818abbc06fd47a5ec7b51
iio: adc: aspeed: set driver data when adc probe.

Fix the issue when adc remove will get the null driver data.

Fixed: commit 573803234e72 ("iio: Aspeed ADC")
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Link: https://lore.kernel.org/r/20210831071458.2334-2-billy_tsai@aspeedtech.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/aspeed_adc.c