linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] counter: ftm-quaddec: needs HAS_IOMEM
@ 2019-06-01 21:38 Thomas Meyer
  2019-06-08 13:31 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Meyer @ 2019-06-01 21:38 UTC (permalink / raw)
  To: linux-iio, linux-kernel; +Cc: Thomas Meyer

the driver fails for UML with:
drivers/counter/ftm-quaddec.c:301: undefined reference to `devm_ioremap'

Fix it by depending on HAS_IOMEM
---
 drivers/counter/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig
index 138ecd8a8fbd..6298344b536b 100644
--- a/drivers/counter/Kconfig
+++ b/drivers/counter/Kconfig
@@ -50,6 +50,7 @@ config STM32_LPTIMER_CNT
 	  module will be called stm32-lptimer-cnt.
 
 config FTM_QUADDEC
+	depends on HAS_IOMEM
 	tristate "Flex Timer Module Quadrature decoder driver"
 	help
 	  Select this option to enable the Flex Timer Quadrature decoder
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] counter: ftm-quaddec: needs HAS_IOMEM
  2019-06-01 21:38 [PATCH] counter: ftm-quaddec: needs HAS_IOMEM Thomas Meyer
@ 2019-06-08 13:31 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2019-06-08 13:31 UTC (permalink / raw)
  To: Thomas Meyer; +Cc: linux-iio, linux-kernel

On Sat,  1 Jun 2019 23:38:05 +0200
Thomas Meyer <thomas@m3y3r.de> wrote:

> the driver fails for UML with:
> drivers/counter/ftm-quaddec.c:301: undefined reference to `devm_ioremap'
> 
> Fix it by depending on HAS_IOMEM
Missing Signed-off-by.

Unfortunately I came across another patch for this before yours so
already have this fixed in the fixes-togreg branch of iio.git.

Thanks,

Jonathan

> ---
>  drivers/counter/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig
> index 138ecd8a8fbd..6298344b536b 100644
> --- a/drivers/counter/Kconfig
> +++ b/drivers/counter/Kconfig
> @@ -50,6 +50,7 @@ config STM32_LPTIMER_CNT
>  	  module will be called stm32-lptimer-cnt.
>  
>  config FTM_QUADDEC
> +	depends on HAS_IOMEM
>  	tristate "Flex Timer Module Quadrature decoder driver"
>  	help
>  	  Select this option to enable the Flex Timer Quadrature decoder


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-08 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-01 21:38 [PATCH] counter: ftm-quaddec: needs HAS_IOMEM Thomas Meyer
2019-06-08 13:31 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).