]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/pinctrl/pinctrl-lpc18xx.c
Merge tag 'for-linus-20191129' of git://git.kernel.dk/linux-block
[linux.git] / drivers / pinctrl / pinctrl-lpc18xx.c
index 06be55dab341f20709010222ee891ca63c449b0d..e4677546aec464a339215a3c5f8237d9dcfcdb59 100644 (file)
@@ -1324,15 +1324,13 @@ static int lpc18xx_create_group_func_map(struct device *dev,
 static int lpc18xx_scu_probe(struct platform_device *pdev)
 {
        struct lpc18xx_scu_data *scu;
-       struct resource *res;
        int ret;
 
        scu = devm_kzalloc(&pdev->dev, sizeof(*scu), GFP_KERNEL);
        if (!scu)
                return -ENOMEM;
 
-       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       scu->base = devm_ioremap_resource(&pdev->dev, res);
+       scu->base = devm_platform_ioremap_resource(pdev, 0);
        if (IS_ERR(scu->base))
                return PTR_ERR(scu->base);