.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * VRFB Rotation Engine |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2009 Nokia Corporation |
---|
5 | 6 | * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, but |
---|
12 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | | - * General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License along |
---|
17 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
---|
18 | | - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
19 | 7 | */ |
---|
20 | 8 | |
---|
21 | 9 | /*#define DEBUG*/ |
---|
.. | .. |
---|
351 | 339 | int i; |
---|
352 | 340 | |
---|
353 | 341 | /* first resource is the register res, the rest are vrfb contexts */ |
---|
354 | | - |
---|
355 | | - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
356 | | - vrfb_base = devm_ioremap_resource(&pdev->dev, mem); |
---|
| 342 | + vrfb_base = devm_platform_ioremap_resource(pdev, 0); |
---|
357 | 343 | if (IS_ERR(vrfb_base)) |
---|
358 | 344 | return PTR_ERR(vrfb_base); |
---|
359 | 345 | |
---|