.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2016 Imagination Technologies |
---|
3 | 4 | * 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. |
---|
9 | 5 | */ |
---|
10 | 6 | |
---|
11 | 7 | #include <generated/utsrelease.h> |
---|
.. | .. |
---|
370 | 366 | const struct of_device_id *match; |
---|
371 | 367 | const struct img_ascii_lcd_config *cfg; |
---|
372 | 368 | struct img_ascii_lcd_ctx *ctx; |
---|
373 | | - struct resource *res; |
---|
374 | 369 | int err; |
---|
375 | 370 | |
---|
376 | 371 | match = of_match_device(img_ascii_lcd_matches, &pdev->dev); |
---|
.. | .. |
---|
392 | 387 | &ctx->offset)) |
---|
393 | 388 | return -EINVAL; |
---|
394 | 389 | } 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); |
---|
397 | 391 | if (IS_ERR(ctx->base)) |
---|
398 | 392 | return PTR_ERR(ctx->base); |
---|
399 | 393 | } |
---|