Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: axi-clkgen: use devm_platform_ioremap_resource() short-hand

No major functional change. Noticed while checking the driver code that
this could be used.
Saves two lines.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20210201151245.21845-5-alexandru.ardelean@analog.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Alexandru Ardelean and committed by
Stephen Boyd
6ba7ea76 99da100b

+1 -3
+1 -3
drivers/clk/clk-axi-clkgen.c
··· 510 510 struct clk_init_data init; 511 511 const char *parent_names[2]; 512 512 const char *clk_name; 513 - struct resource *mem; 514 513 unsigned int i; 515 514 int ret; 516 515 ··· 521 522 if (!axi_clkgen) 522 523 return -ENOMEM; 523 524 524 - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 525 - axi_clkgen->base = devm_ioremap_resource(&pdev->dev, mem); 525 + axi_clkgen->base = devm_platform_ioremap_resource(pdev, 0); 526 526 if (IS_ERR(axi_clkgen->base)) 527 527 return PTR_ERR(axi_clkgen->base); 528 528