lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20171227225956.14442-19-andrew.smirnov@gmail.com> Date: Wed, 27 Dec 2017 14:59:54 -0800 From: Andrey Smirnov <andrew.smirnov@...il.com> To: Srinivas Kandagatla <srinivas.kandagatla@...aro.org> Cc: Andrey Smirnov <andrew.smirnov@...il.com>, Heiko Stuebner <heiko@...ech.de>, Masahiro Yamada <yamada.masahiro@...ionext.com>, Carlo Caione <carlo@...one.org>, Kevin Hilman <khilman@...libre.com>, Matthias Brugger <matthias.bgg@...il.com>, Joachim Eastwood <manabian@...il.com>, cphealy@...il.com, linux-kernel@...r.kernel.org, linux-mediatek@...ts.infradead.org, linux-rockchip@...ts.infradead.org, linux-amlogic@...ts.infradead.org, linux-arm-kernel@...ts.infradead.org Subject: [PATCH 18/20] nvmem: rockchip-efuse: Do not use "&pdev->dev" explicitly There's "dev" variable for this already. Use it. Cc: Srinivas Kandagatla <srinivas.kandagatla@...aro.org> Cc: Heiko Stuebner <heiko@...ech.de> Cc: Masahiro Yamada <yamada.masahiro@...ionext.com> Cc: Carlo Caione <carlo@...one.org> Cc: Kevin Hilman <khilman@...libre.com> Cc: Matthias Brugger <matthias.bgg@...il.com> Cc: Joachim Eastwood <manabian@...il.com> Cc: cphealy@...il.com Cc: linux-kernel@...r.kernel.org Cc: linux-mediatek@...ts.infradead.org Cc: linux-rockchip@...ts.infradead.org Cc: linux-amlogic@...ts.infradead.org Cc: linux-arm-kernel@...ts.infradead.org Signed-off-by: Andrey Smirnov <andrew.smirnov@...il.com> --- drivers/nvmem/rockchip-efuse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c index 979ba0a376a0..3120329aea94 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -202,21 +202,21 @@ static int rockchip_efuse_probe(struct platform_device *pdev) return -EINVAL; } - efuse = devm_kzalloc(&pdev->dev, sizeof(struct rockchip_efuse_chip), + efuse = devm_kzalloc(dev, sizeof(struct rockchip_efuse_chip), GFP_KERNEL); if (!efuse) return -ENOMEM; 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)) 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)) return PTR_ERR(efuse->clk); - efuse->dev = &pdev->dev; + efuse->dev = dev; econfig.size = resource_size(res); econfig.reg_read = data; econfig.priv = efuse; -- 2.14.3
Powered by blists - more mailing lists