Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412139
| From | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning. |
| Date | 2016-06-02 13:30 +0200 |
| Message-ID | <rFyZ3-5ib-3@gated-at.bofh.it> (permalink) |
| References | <rFyPo-5f5-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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; -- 2.8.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] nvmem: imx-ocotp: add COMPILE_TEST for proper test coverage Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-02 13:20 +0200
[PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning. Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-02 13:30 +0200
Re: [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning. Philipp Zabel <p.zabel@pengutronix.de> - 2016-06-02 14:50 +0200
csiph-web