We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d3a369 commit 75cc0a1Copy full SHA for 75cc0a1
drivers/clk/hisilicon/reset.c
@@ -90,14 +90,12 @@ static const struct reset_control_ops hisi_reset_ops = {
90
struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
91
{
92
struct hisi_reset_controller *rstc;
93
- struct resource *res;
94
95
rstc = devm_kmalloc(&pdev->dev, sizeof(*rstc), GFP_KERNEL);
96
if (!rstc)
97
return NULL;
98
99
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
100
- rstc->membase = devm_ioremap_resource(&pdev->dev, res);
+ rstc->membase = devm_platform_ioremap_resource(pdev, 0);
101
if (IS_ERR(rstc->membase))
102
103
0 commit comments