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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Oct 2021 09:45:01 +0000 (11:45 +0200)
commitb45923f66eb6f5df152411f1872bd01bbc5ec3e8
treecbb009f2b6cd55addff128e7d8fa6ca1af7d4449
parentea947267eb6f21f7127e2c94858e2f981344bc44
iio: adc: aspeed: set driver data when adc probe.

commit eb795cd97365a3d3d9da3926d234a7bc32a3bb15 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/aspeed_adc.c