diff options
| author | Jeff Harris <[email protected]> | 2011-09-23 15:49:36 +0000 |
|---|---|---|
| committer | Grant Likely <[email protected]> | 2011-09-23 23:28:29 +0000 |
| commit | 387719c2ec995019e0af0dc537ca17c9ebd5b64f (patch) | |
| tree | 7c8761429702dc6974e016de62d25e690b4cd9fe /lib/mpi/mpi-bit.c | |
| parent | spi/imx: Fix spi-imx when the hardware SPI chipselects are used (diff) | |
| download | kernel-387719c2ec995019e0af0dc537ca17c9ebd5b64f.tar.gz kernel-387719c2ec995019e0af0dc537ca17c9ebd5b64f.zip | |
spi: Fix WARN when removing spi-fsl-spi module
If CPM mode is not used, the fsl_dummy_rx variable is never allocated. When
the cleanup attempts to free it, the reference count is zero and a WARN is
generated. The same CPM mode check used in the initialize is applied to the
free as well.
Tested on 2.6.33 with the previous spi_mpc8xxx driver. The renamed
spi-fsl-spi driver looks to have the same problem.
Signed-off-by: Jeff Harris <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
