spi: npcm-pspi: Fix wrong priv pointer
authorAxel Lin <axel.lin@ingics.com>
Tue, 1 Jan 2019 14:10:53 +0000 (22:10 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 12:27:17 +0000 (12:27 +0000)
commit082531444e454bac6f743ec064203bf8812bc9ac
tree0706277265c121c4a09986c507f231e53b7104b9
parent916d9802e4b0723c1e4650e58e04c0259c14b85c
spi: npcm-pspi: Fix wrong priv pointer

In npcm_pspi_probe(), current code set platform_set_drvdata(pdev, master);
so in npcm_pspi_remove() platform_get_drvdata(pdev) will return pointer to
master rather than priv. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-npcm-pspi.c