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 1ca8a01 commit 65f15e4Copy full SHA for 65f15e4
drivers/mfd/fsl-imx25-tsadc.c
@@ -137,16 +137,14 @@ static int mx25_tsadc_probe(struct platform_device *pdev)
137
{
138
struct device *dev = &pdev->dev;
139
struct mx25_tsadc *tsadc;
140
- struct resource *res;
141
int ret;
142
void __iomem *iomem;
143
144
tsadc = devm_kzalloc(dev, sizeof(*tsadc), GFP_KERNEL);
145
if (!tsadc)
146
return -ENOMEM;
147
148
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
149
- iomem = devm_ioremap_resource(dev, res);
+ iomem = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
150
if (IS_ERR(iomem))
151
return PTR_ERR(iomem);
152
0 commit comments