diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-10-18 12:54:25 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-18 19:24:50 +0200 |
commit | 4f3d957718e7f0ac2b033dbf48c7cddecd0a8dd3 (patch) | |
tree | 2ace0dccfa9420fe3c9aea8b475245f4c9cd363a /sound/soc/pxa/mmp-sspa.c | |
parent | spi: use new `spi_transfer_delay_exec` helper where straightforward (diff) | |
download | linux-4f3d957718e7f0ac2b033dbf48c7cddecd0a8dd3.tar.xz linux-4f3d957718e7f0ac2b033dbf48c7cddecd0a8dd3.zip |
spi: pxa2xx: No need to keep pointer to platform device
There is no need to keep a pointer to the platform device. Currently there are
no users of it directly, and if there will be in the future we may restore it
from pointer to the struct device.
Convert all users at the same time.
Cc: Russell King <linux@armlinux.org.uk>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20191018105429.82782-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/pxa/mmp-sspa.c')
-rw-r--r-- | sound/soc/pxa/mmp-sspa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c index e3e5425b5c62..e701637a9ae9 100644 --- a/sound/soc/pxa/mmp-sspa.c +++ b/sound/soc/pxa/mmp-sspa.c @@ -177,7 +177,7 @@ static int mmp_sspa_set_dai_fmt(struct snd_soc_dai *cpu_dai, /* we can only change the settings if the port is not in use */ if ((mmp_sspa_read_reg(sspa, SSPA_TXSP) & SSPA_SP_S_EN) || (mmp_sspa_read_reg(sspa, SSPA_RXSP) & SSPA_SP_S_EN)) { - dev_err(&sspa->pdev->dev, + dev_err(sspa->dev, "can't change hardware dai format: stream is in use\n"); return -EINVAL; } |