Skip to content
Commit 387719c2 authored by Jeff Harris's avatar Jeff Harris Committed by Grant Likely
Browse files

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: default avatarJeff Harris <jeff_harris@kentrox.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 4cc122ac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment