drivers: iio: adc: fix unmet dependency on OF
PATCH 1/1 drivers: iio: adc: fix unmet dependency on OF
When AD9467 is enabled, and OF is disabled,Kbuild gives the following warning:
WARNING: unmet direct dependencies detected for ADI_AXI_ADC
Depends on [n]: IIO [=y] && HAS_IOMEM [=y] && OF [=n] Selected by [y]:
- AD9467 [=y] && IIO [=y] && SPI [=y]
This is because AD9467 selects ADI_AXI_ADC
without selecting or depending on OF,
despite ADI_AXI_ADC depending on OF.
--- drivers/iio/adc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/Kconfig +1 -1
@@ -248,7 +248,7 @@ config AD799X config AD9467 tristate "Analog Devices AD9467 High Speed ADC driver" - depends on SPI + depends on SPI && OF select ADI_AXI_ADC help Say yes here to build support for Analog Devices:
Signature · 1 line
2.25.1
Quoted 4 lines · Julian Braha
When AD9467 is enabled, and OF is disabled,
Kbuildgives the following warning:
Quoted 9 lines
WARNING: unmet direct dependencies detected for
ADI_AXI_ADC
Depends on [n]: IIO [=y] &&HAS_IOMEM[=y] && OF [=n] Selected by [y]:
- AD9467 [=y] && IIO [=y] && SPI [=y]This is because AD9467 selects
ADI_AXI_ADC
without selecting or depending on OF,
despiteADI_AXI_ADCdepending on OF.
Hey,
Thanks for the patch.
This should have been fixed a bit differently with patch:
https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/
Can you check if this fixes your setup?
Thanks
Alex
Quoted 21 lines
Signed-off-by Julian Braha <[email protected]>--- drivers/iio/adc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/adc/Kconfig +1
-2@@ -248,7 +248,7 @@ config AD799X config AD9467 tristate "Analog Devices AD9467 High Speed ADC driver" - depends on SPI + depends on SPI && OF select ADI_AXI_ADC help Say yes here to build support for Analog Devices: --2.25.1
Quoted 14 lines · Alexandru Ardelean
Quoted 4 lines · Julian Braha
When AD9467 is enabled, and OF is disabled,
Kbuildgives the following warning:Quoted 8 lines
WARNING: unmet direct dependencies detected for
ADI_AXI_ADC
Depends on [n]: IIO [=y] &&HAS_IOMEM[=y] && OF [=n] Selected by [y]:
- AD9467 [=y] && IIO [=y] && SPI [=y]This is because AD9467 selects
ADI_AXI_ADC
without selecting or depending on OF,
despiteADI_AXI_ADCdepending on OF.
Quoted 5 lines
Thanks for the patch.
This should have been fixed a bit differently with patch:
https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/Can you check if this fixes your setup?
I have to add for sake of the clarification that we are trying really hard to make drivers agnostic to the device tree provider. In such a case the same driver can work for all existing providers (ACPI, DT, and board files with use of software nodes).
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 37 lines · EDT you
Quoted 4 lines · Julian Braha
When AD9467 is enabled, and OF is disabled,
Kbuildgives the following warning:Quoted 9 lines
WARNING: unmet direct dependencies detected for
ADI_AXI_ADC
Depends on [n]: IIO [=y] &&HAS_IOMEM[=y] && OF [=n] Selected by [y]:
- AD9467 [=y] && IIO [=y] && SPI [=y]This is because AD9467 selects
ADI_AXI_ADC
without selecting or depending on OF,
despiteADI_AXI_ADCdepending on OF.Hey,
Thanks for the patch.
This should have been fixed a bit differently with patch:
https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/Can you check if this fixes your setup?
Thanks
AlexQuoted 11 lines
Signed-off-by Julian Braha <[email protected]>--- drivers/iio/adc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/iio/adc/Kconfig +0
-0@@ -248,7 +248,7 @@ config AD799X
Quoted 11 lines
Quoted 10 lines
drivers/iio/adc/Kconfig +1
-2config AD9467 tristate "Analog Devices AD9467 High Speed ADC driver" - depends on SPI + depends on SPI && OF select ADI_AXI_ADC help Say yes here to build support for Analog Devices: --2.25.1
Hi Alex,
I can confirm that this works for me. (https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/)
- Julian Braha