hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/auxdisplay/img-ascii-lcd.c
....@@ -1,11 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2016 Imagination Technologies
34 * Author: Paul Burton <paul.burton@mips.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License as published by the
7
- * Free Software Foundation; either version 2 of the License, or (at your
8
- * option) any later version.
95 */
106
117 #include <generated/utsrelease.h>
....@@ -370,7 +366,6 @@
370366 const struct of_device_id *match;
371367 const struct img_ascii_lcd_config *cfg;
372368 struct img_ascii_lcd_ctx *ctx;
373
- struct resource *res;
374369 int err;
375370
376371 match = of_match_device(img_ascii_lcd_matches, &pdev->dev);
....@@ -392,8 +387,7 @@
392387 &ctx->offset))
393388 return -EINVAL;
394389 } else {
395
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
396
- ctx->base = devm_ioremap_resource(&pdev->dev, res);
390
+ ctx->base = devm_platform_ioremap_resource(pdev, 0);
397391 if (IS_ERR(ctx->base))
398392 return PTR_ERR(ctx->base);
399393 }