Commit e84d1f96 authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Greg Kroah-Hartman

nvmem: rockchip-efuse: Do not use "&pdev->dev" explicitly

There's "dev" variable for this already. Use it.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Carlo Caione <carlo@caione.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: cphealy@gmail.com
Cc: linux-kernel@vger.kernel.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-rockchip@lists.infradead.org
Cc: linux-amlogic@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d5007f75
...@@ -268,21 +268,21 @@ static int rockchip_efuse_probe(struct platform_device *pdev) ...@@ -268,21 +268,21 @@ static int rockchip_efuse_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
} }
efuse = devm_kzalloc(&pdev->dev, sizeof(struct rockchip_efuse_chip), efuse = devm_kzalloc(dev, sizeof(struct rockchip_efuse_chip),
GFP_KERNEL); GFP_KERNEL);
if (!efuse) if (!efuse)
return -ENOMEM; return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
efuse->base = devm_ioremap_resource(&pdev->dev, res); efuse->base = devm_ioremap_resource(dev, res);
if (IS_ERR(efuse->base)) if (IS_ERR(efuse->base))
return PTR_ERR(efuse->base); return PTR_ERR(efuse->base);
efuse->clk = devm_clk_get(&pdev->dev, "pclk_efuse"); efuse->clk = devm_clk_get(dev, "pclk_efuse");
if (IS_ERR(efuse->clk)) if (IS_ERR(efuse->clk))
return PTR_ERR(efuse->clk); return PTR_ERR(efuse->clk);
efuse->dev = &pdev->dev; efuse->dev = dev;
if (of_property_read_u32(dev->of_node, "rockchip,efuse-size", if (of_property_read_u32(dev->of_node, "rockchip,efuse-size",
&econfig.size)) &econfig.size))
econfig.size = resource_size(res); econfig.size = resource_size(res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment