@@ -223,7 +223,6 @@ static void meson_unregister_algs(struct
static int meson_crypto_probe(struct platform_device *pdev)
{
- struct resource *res;
struct meson_dev *mc;
int err, i;
@@ -237,8 +236,7 @@ static int meson_crypto_probe(struct pla
mc->dev = &pdev->dev;
platform_set_drvdata(pdev, mc);
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- mc->base = devm_ioremap_resource(&pdev->dev, res);
+ mc->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(mc->base)) {
err = PTR_ERR(mc->base);
dev_err(&pdev->dev, "Cannot request MMIO err=%d\n", err);