We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d568bbd commit e8897e4Copy full SHA for e8897e4
drivers/auxdisplay/img-ascii-lcd.c
@@ -356,7 +356,6 @@ static int img_ascii_lcd_probe(struct platform_device *pdev)
356
const struct of_device_id *match;
357
const struct img_ascii_lcd_config *cfg;
358
struct img_ascii_lcd_ctx *ctx;
359
- struct resource *res;
360
int err;
361
362
match = of_match_device(img_ascii_lcd_matches, &pdev->dev);
@@ -378,8 +377,7 @@ static int img_ascii_lcd_probe(struct platform_device *pdev)
378
377
&ctx->offset))
379
return -EINVAL;
380
} else {
381
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
382
- ctx->base = devm_ioremap_resource(&pdev->dev, res);
+ ctx->base = devm_platform_ioremap_resource(pdev, 0);
383
if (IS_ERR(ctx->base))
384
return PTR_ERR(ctx->base);
385
}
0 commit comments