summaryrefslogtreecommitdiffstats
path: root/net/appletalk
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@st.com>2020-04-30 11:28:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-27 16:43:13 +0200
commit80592fb838c87dc44a9b35cb5f894c8213d99c60 (patch)
tree81f8aed57a2a20b431408981bd41f089296cb672 /net/appletalk
parentce2c6af1806f81238adada07b867a14d0b7fd315 (diff)
downloadlinux-stable-80592fb838c87dc44a9b35cb5f894c8213d99c60.tar.gz
linux-stable-80592fb838c87dc44a9b35cb5f894c8213d99c60.tar.bz2
linux-stable-80592fb838c87dc44a9b35cb5f894c8213d99c60.zip
iio: adc: stm32-adc: fix device used to request dma
[ Upstream commit 52cd91c27f3908b88e8b25aed4a4d20660abcc45 ] 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: 2763ea0585c99 ("iio: adc: stm32: add optional dma support") Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/appletalk')
0 files changed, 0 insertions, 0 deletions