projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed4b51b
)
thermal/drivers/hisi: Use devm_platform_ioremap_resource()
author
Yang Li
<yang.lee@linux.alibaba.com>
Wed, 8 Mar 2023 06:27:19 +0000
(14:27 +0800)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Sat, 1 Apr 2023 18:51:45 +0000
(20:51 +0200)
According to commit
7945f929f1a7
("drivers: provide
devm_platform_ioremap_resource()"), convert platform_get_resource(),
devm_ioremap_resource() to a single call to Use
devm_platform_ioremap_resource(), as this is exactly what this
function does.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20230308062719.79522-1-yang.lee@linux.alibaba.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/hisi_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/hisi_thermal.c
b/drivers/thermal/hisi_thermal.c
index 0d135b8a5b622f83ff1b63941430bab24c14a4d5..3f09ef8be41adb714462c23fc3e738aae0ba9b47 100644
(file)
--- a/
drivers/thermal/hisi_thermal.c
+++ b/
drivers/thermal/hisi_thermal.c
@@
-544,7
+544,6
@@
static int hisi_thermal_probe(struct platform_device *pdev)
{
struct hisi_thermal_data *data;
struct device *dev = &pdev->dev;
- struct resource *res;
int i, ret;
data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
@@
-555,8
+554,7
@@
static int hisi_thermal_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, data);
data->ops = of_device_get_match_data(dev);
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- data->regs = devm_ioremap_resource(dev, res);
+ data->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(data->regs))
return PTR_ERR(data->regs);