All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>, linux-kernel@vger.kernel.org
Subject: Re: [RESEND] phy: Fix build error of missing devm_ioremap_resource on UM
Date: Wed, 30 Mar 2016 09:08:56 +0100	[thread overview]
Message-ID: <20160330080856.GB3323@x1> (raw)
In-Reply-To: <1459298921-20410-1-git-send-email-k.kozlowski@samsung.com>

On Wed, 30 Mar 2016, Krzysztof Kozlowski wrote:

> The devres.o gets linked if HAS_IOMEM is present so on ARCH=um
> allyesconfig (COMPILE_TEST) failed with:
> 
> drivers/built-in.o: In function `omap_control_phy_probe':
> phy-omap-control.c:(.text+0x16db): undefined reference to `devm_ioremap_resource'
> drivers/built-in.o: In function `cygnus_pcie_phy_probe':
> phy-bcm-cygnus-pcie.c:(.text+0x1bfa): undefined reference to `devm_ioremap_resource'
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> ---
>  drivers/phy/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)

Holding off on this until the discussion reaches some kind of
consensus.

> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
> index 26566db09de0..879ac798f6f7 100644
> --- a/drivers/phy/Kconfig
> +++ b/drivers/phy/Kconfig
> @@ -128,6 +128,7 @@ config PHY_RCAR_GEN3_USB2
>  config OMAP_CONTROL_PHY
>  	tristate "OMAP CONTROL PHY Driver"
>  	depends on ARCH_OMAP2PLUS || COMPILE_TEST
> +	depends on HAS_IOMEM
>  	help
>  	  Enable this to add support for the PHY part present in the control
>  	  module. This driver has API to power on the USB2 PHY and to write to
> @@ -415,6 +416,7 @@ config PHY_BRCMSTB_SATA
>  config PHY_CYGNUS_PCIE
>  	tristate "Broadcom Cygnus PCIe PHY driver"
>  	depends on OF && (ARCH_BCM_CYGNUS || COMPILE_TEST)
> +	depends on HAS_IOMEM
>  	select GENERIC_PHY
>  	default ARCH_BCM_CYGNUS
>  	help

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2016-03-30  8:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30  0:48 [RESEND] phy: Fix build error of missing devm_ioremap_resource on UM Krzysztof Kozlowski
2016-03-30  8:08 ` Lee Jones [this message]
2016-03-30  8:10   ` Lee Jones
2016-03-30  8:23     ` Krzysztof Kozlowski
2016-03-30 12:01       ` Lee Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160330080856.GB3323@x1 \
    --to=lee.jones@linaro.org \
    --cc=k.kozlowski@samsung.com \
    --cc=kishon@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.