.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for the U300 pin controller |
---|
3 | 4 | * |
---|
.. | .. |
---|
1054 | 1055 | static int u300_pmx_probe(struct platform_device *pdev) |
---|
1055 | 1056 | { |
---|
1056 | 1057 | struct u300_pmx *upmx; |
---|
1057 | | - struct resource *res; |
---|
1058 | 1058 | |
---|
1059 | 1059 | /* Create state holders etc for this driver */ |
---|
1060 | 1060 | upmx = devm_kzalloc(&pdev->dev, sizeof(*upmx), GFP_KERNEL); |
---|
.. | .. |
---|
1063 | 1063 | |
---|
1064 | 1064 | upmx->dev = &pdev->dev; |
---|
1065 | 1065 | |
---|
1066 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
1067 | | - upmx->virtbase = devm_ioremap_resource(&pdev->dev, res); |
---|
| 1066 | + upmx->virtbase = devm_platform_ioremap_resource(pdev, 0); |
---|
1068 | 1067 | if (IS_ERR(upmx->virtbase)) |
---|
1069 | 1068 | return PTR_ERR(upmx->virtbase); |
---|
1070 | 1069 | |
---|