| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * CLPS711X CPU idle driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/cpuidle.h> |
|---|
| .. | .. |
|---|
| 41 | 37 | |
|---|
| 42 | 38 | static int __init clps711x_cpuidle_probe(struct platform_device *pdev) |
|---|
| 43 | 39 | { |
|---|
| 44 | | - struct resource *res; |
|---|
| 45 | | - |
|---|
| 46 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 47 | | - clps711x_halt = devm_ioremap_resource(&pdev->dev, res); |
|---|
| 40 | + clps711x_halt = devm_platform_ioremap_resource(pdev, 0); |
|---|
| 48 | 41 | if (IS_ERR(clps711x_halt)) |
|---|
| 49 | 42 | return PTR_ERR(clps711x_halt); |
|---|
| 50 | 43 | |
|---|