Commit 0df9f6c
committed
spi: imx: Fix cleanup in remove and convert to
Merge series from Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
This small series converts the spi-imx driver to .remove_new(). The
motivation for this tree-wide effort are drivers that don't properly
cleanup and return an error code. This is broken as this results in
resource leaks. The spi-imx driver is such a driver. The idea is that if
the remove callback returns void it's obvious that an early error return
is wrong.1 file changed
+7
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1848 | 1848 | | |
1849 | 1849 | | |
1850 | 1850 | | |
1851 | | - | |
| 1851 | + | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | 1858 | | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
1866 | 1864 | | |
1867 | 1865 | | |
1868 | 1866 | | |
1869 | 1867 | | |
1870 | 1868 | | |
1871 | 1869 | | |
1872 | | - | |
1873 | | - | |
1874 | 1870 | | |
1875 | 1871 | | |
1876 | 1872 | | |
| |||
1932 | 1928 | | |
1933 | 1929 | | |
1934 | 1930 | | |
1935 | | - | |
| 1931 | + | |
1936 | 1932 | | |
1937 | 1933 | | |
1938 | 1934 | | |
| |||
0 commit comments