summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@st.com>2020-04-30 11:28:46 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-03 14:16:49 +0100
commitb455d06e6fb3c035711e8aab1ca18082ccb15d87 (patch)
tree2ba031ea5efcc1fffa2b34a029267568e88febfa /drivers/iio/accel
parent52cd91c27f3908b88e8b25aed4a4d20660abcc45 (diff)
downloadlinux-b455d06e6fb3c035711e8aab1ca18082ccb15d87.tar.bz2
iio: adc: stm32-dfsdm: fix device used to request dma
DMA channel request should use device struct from platform device struct. Currently it's using iio device struct. But at this stage when probing, device struct isn't yet registered (e.g. device_register is done in iio_device_register). Since commit 71723a96b8b1 ("dmaengine: Create symlinks between DMA channels and slaves"), a warning message is printed as the links in sysfs can't be created, due to device isn't yet registered: - Cannot create DMA slave symlink - Cannot create DMA dma:rx symlink Fix this by using device struct from platform device to request dma chan. Fixes: eca949800d2d ("IIO: ADC: add stm32 DFSDM support for PDM microphone") Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel')
0 files changed, 0 insertions, 0 deletions