Commit 28f73de
iio: ad4130: Make sure clock provider gets removed
The ad4130 driver registers a clock provider, but never removes it. This
leaves a stale clock provider behind that references freed clocks when the
device is unbound.
Register a managed action to remove the clock provider when the device is
removed.
Fixes: 6209406 ("iio: adc: ad4130: add AD4130 driver")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20230414150702.518441-1-lars@metafoo.de
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>1 parent 265c82e commit 28f73de
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
1820 | 1825 | | |
1821 | 1826 | | |
1822 | 1827 | | |
1823 | 1828 | | |
1824 | 1829 | | |
1825 | 1830 | | |
1826 | 1831 | | |
| 1832 | + | |
1827 | 1833 | | |
1828 | 1834 | | |
1829 | 1835 | | |
| |||
1843 | 1849 | | |
1844 | 1850 | | |
1845 | 1851 | | |
1846 | | - | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
1847 | 1857 | | |
1848 | 1858 | | |
1849 | 1859 | | |
| |||
0 commit comments