mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Maxime Ripard <maxime.ripard@free-electrons.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning.
Date: Thu, 02 Jun 2016 14:49:21 +0200	[thread overview]
Message-ID: <1464871761.3307.17.camel@pengutronix.de> (raw)
In-Reply-To: <1464866384-4118-2-git-send-email-srinivas.kandagatla@linaro.org>

Am Donnerstag, den 02.06.2016, 12:19 +0100 schrieb Srinivas Kandagatla:
> This patch fixes below error if the driver is compiled with 64 bit
> machine configuration.
> 
> "drivers/nvmem/imx-ocotp.c:102:14: warning: assignment makes integer
> from pointer without a cast"
> 
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
>  drivers/nvmem/imx-ocotp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
> index a340390..ac27b9b 100644
> --- a/drivers/nvmem/imx-ocotp.c
> +++ b/drivers/nvmem/imx-ocotp.c
> @@ -99,7 +99,7 @@ static int imx_ocotp_probe(struct platform_device *pdev)
>  		return PTR_ERR(priv->clk);
>  
>  	of_id = of_match_device(imx_ocotp_dt_ids, dev);
> -	priv->nregs = (unsigned int)of_id->data;
> +	priv->nregs = (unsigned long)of_id->data;
>  	imx_ocotp_nvmem_config.size = 4 * priv->nregs;
>  	imx_ocotp_nvmem_config.dev = dev;
>  	imx_ocotp_nvmem_config.priv = priv;

Thanks you, both
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>

regards
Philipp

      reply	other threads:[~2016-06-02 12:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 11:19 [PATCH 1/2] nvmem: imx-ocotp: add COMPILE_TEST for proper test coverage Srinivas Kandagatla
2016-06-02 11:19 ` [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning Srinivas Kandagatla
2016-06-02 12:49   ` Philipp Zabel [this message]

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=1464871761.3307.17.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxime.ripard@free-electrons.com \
    --cc=srinivas.kandagatla@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®