diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2020-05-12 15:27:05 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-22 17:29:25 +0100 |
commit | 10134ec3f8cefa6a40fe84987f1795e9e0da9715 (patch) | |
tree | 7786265094fbcfb85ba99969c7c71d58723f394d /drivers/spi/spi-bcm2835aux.c | |
parent | f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 (diff) | |
download | lwn-10134ec3f8cefa6a40fe84987f1795e9e0da9715.tar.gz lwn-10134ec3f8cefa6a40fe84987f1795e9e0da9715.zip |
iio: adc: stm32-adc: fix a wrong error message when probing interrupts
A wrong error message is printed out currently, like on STM32MP15:
- stm32-adc-core 48003000.adc: IRQ index 2 not found.
This is seen since commit 7723f4c5ecdb ("driver core: platform: Add an
error message to platform_get_irq*()").
The STM32 ADC core driver wrongly requests up to 3 interrupt lines. It
should request only the necessary IRQs, based on the compatible:
- stm32f4/h7 ADCs share a common interrupt
- stm32mp1, has one interrupt line per ADC.
So add the number of required interrupts to the compatible data.
Fixes: d58c67d1d851 ("iio: adc: stm32-adc: add support for STM32MP1")
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/spi/spi-bcm2835aux.c')
0 files changed, 0 insertions, 0 deletions