Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: omap-usb-tll: Convert to devm_platform_ioremap_resource()

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230706113939.1178-2-frank.li@vivo.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Yangtao Li and committed by
Lee Jones
41b2e61a 8e950a60

+1 -3
+1 -3
drivers/mfd/omap-usb-tll.c
··· 200 200 static int usbtll_omap_probe(struct platform_device *pdev) 201 201 { 202 202 struct device *dev = &pdev->dev; 203 - struct resource *res; 204 203 struct usbtll_omap *tll; 205 204 void __iomem *base; 206 205 int i, nch, ver; 207 206 208 207 dev_dbg(dev, "starting TI HSUSB TLL Controller\n"); 209 208 210 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 211 - base = devm_ioremap_resource(dev, res); 209 + base = devm_platform_ioremap_resource(pdev, 0); 212 210 if (IS_ERR(base)) 213 211 return PTR_ERR(base); 214 212