* [PATCH 2/7] mfd: omap-usb-tll: Convert to devm_platform_ioremap_resource()
[not found] <20230706113939.1178-1-frank.li@vivo.com>
@ 2023-07-06 11:39 ` Yangtao Li
2023-07-13 13:39 ` Lee Jones
2023-07-06 11:39 ` [PATCH 5/7] mfd: omap-usb-host: " Yangtao Li
1 sibling, 1 reply; 4+ messages in thread
From: Yangtao Li @ 2023-07-06 11:39 UTC (permalink / raw)
To: Tony Lindgren, Lee Jones; +Cc: Yangtao Li, linux-omap, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/mfd/omap-usb-tll.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c
index 69cbc2097911..906353735c78 100644
--- a/drivers/mfd/omap-usb-tll.c
+++ b/drivers/mfd/omap-usb-tll.c
@@ -200,15 +200,13 @@ static unsigned ohci_omap3_fslsmode(enum usbhs_omap_port_mode mode)
static int usbtll_omap_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
- struct resource *res;
struct usbtll_omap *tll;
void __iomem *base;
int i, nch, ver;
dev_dbg(dev, "starting TI HSUSB TLL Controller\n");
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
--
2.39.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 5/7] mfd: omap-usb-host: Convert to devm_platform_ioremap_resource()
[not found] <20230706113939.1178-1-frank.li@vivo.com>
2023-07-06 11:39 ` [PATCH 2/7] mfd: omap-usb-tll: Convert to devm_platform_ioremap_resource() Yangtao Li
@ 2023-07-06 11:39 ` Yangtao Li
2023-07-13 13:41 ` Lee Jones
1 sibling, 1 reply; 4+ messages in thread
From: Yangtao Li @ 2023-07-06 11:39 UTC (permalink / raw)
To: Tony Lindgren, Lee Jones; +Cc: Yangtao Li, linux-omap, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/mfd/omap-usb-host.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 7f5775109593..78f1bb55dbc0 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -534,7 +534,6 @@ static int usbhs_omap_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct usbhs_omap_platform_data *pdata = dev_get_platdata(dev);
struct usbhs_hcd_omap *omap;
- struct resource *res;
int ret = 0;
int i;
bool need_logic_fck;
@@ -569,8 +568,7 @@ static int usbhs_omap_probe(struct platform_device *pdev)
return -ENOMEM;
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- omap->uhh_base = devm_ioremap_resource(dev, res);
+ omap->uhh_base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(omap->uhh_base))
return PTR_ERR(omap->uhh_base);
--
2.39.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/7] mfd: omap-usb-tll: Convert to devm_platform_ioremap_resource()
2023-07-06 11:39 ` [PATCH 2/7] mfd: omap-usb-tll: Convert to devm_platform_ioremap_resource() Yangtao Li
@ 2023-07-13 13:39 ` Lee Jones
0 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2023-07-13 13:39 UTC (permalink / raw)
To: Yangtao Li; +Cc: Tony Lindgren, linux-omap, linux-kernel
On Thu, 06 Jul 2023, Yangtao Li wrote:
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
> drivers/mfd/omap-usb-tll.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 5/7] mfd: omap-usb-host: Convert to devm_platform_ioremap_resource()
2023-07-06 11:39 ` [PATCH 5/7] mfd: omap-usb-host: " Yangtao Li
@ 2023-07-13 13:41 ` Lee Jones
0 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2023-07-13 13:41 UTC (permalink / raw)
To: Yangtao Li; +Cc: Tony Lindgren, linux-omap, linux-kernel
On Thu, 06 Jul 2023, Yangtao Li wrote:
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
> drivers/mfd/omap-usb-host.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-13 13:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230706113939.1178-1-frank.li@vivo.com>
2023-07-06 11:39 ` [PATCH 2/7] mfd: omap-usb-tll: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-13 13:39 ` Lee Jones
2023-07-06 11:39 ` [PATCH 5/7] mfd: omap-usb-host: " Yangtao Li
2023-07-13 13:41 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).