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 0395f86 commit ea27500Copy full SHA for ea27500
drivers/dma/ti/k3-udma.c
@@ -3157,13 +3157,10 @@ static const struct soc_device_attribute k3_soc_devices[] = {
3157
3158
static int udma_get_mmrs(struct platform_device *pdev, struct udma_dev *ud)
3159
{
3160
- struct resource *res;
3161
int i;
3162
3163
for (i = 0; i < MMR_LAST; i++) {
3164
- res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
3165
- mmr_names[i]);
3166
- ud->mmrs[i] = devm_ioremap_resource(&pdev->dev, res);
+ ud->mmrs[i] = devm_platform_ioremap_resource_byname(pdev, mmr_names[i]);
3167
if (IS_ERR(ud->mmrs[i]))
3168
return PTR_ERR(ud->mmrs[i]);
3169
}
0 commit comments