mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
pinctrl: cherryview: Use devm_platform_ioremap_resource()
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
24025010d1
commit
a86f12b277
1 changed files with 1 additions and 3 deletions
|
@ -1667,7 +1667,6 @@ static int chv_pinctrl_probe(struct platform_device *pdev)
|
|||
{
|
||||
struct chv_pinctrl *pctrl;
|
||||
struct acpi_device *adev;
|
||||
struct resource *res;
|
||||
acpi_status status;
|
||||
int ret, irq, i;
|
||||
|
||||
|
@ -1697,8 +1696,7 @@ static int chv_pinctrl_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
#endif
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
pctrl->regs = devm_ioremap_resource(&pdev->dev, res);
|
||||
pctrl->regs = devm_platform_ioremap_resource(pdev, 0);
|
||||
if (IS_ERR(pctrl->regs))
|
||||
return PTR_ERR(pctrl->regs);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue