* [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource()
@ 2023-07-05 6:53 Yangtao Li
2023-07-05 6:53 ` [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() Yangtao Li
` (14 more replies)
0 siblings, 15 replies; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Emilio López, Michael Turquette, Stephen Boyd, Chen-Yu Tsai,
Jernej Skrabec, Samuel Holland
Cc: Yangtao Li, linux-clk, linux-arm-kernel, linux-sunxi,
linux-kernel
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/sunxi/clk-sun9i-mmc.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/clk/sunxi/clk-sun9i-mmc.c b/drivers/clk/sunxi/clk-sun9i-mmc.c
index 636bcf2439ef..0862b02b1ed4 100644
--- a/drivers/clk/sunxi/clk-sun9i-mmc.c
+++ b/drivers/clk/sunxi/clk-sun9i-mmc.c
@@ -108,15 +108,13 @@ static int sun9i_a80_mmc_config_clk_probe(struct platform_device *pdev)
spin_lock_init(&data->lock);
- r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!r)
- return -EINVAL;
- /* one clock/reset pair per word */
- count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH);
- data->membase = devm_ioremap_resource(&pdev->dev, r);
+ data->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &r);
if (IS_ERR(data->membase))
return PTR_ERR(data->membase);
+ /* one clock/reset pair per word */
+ count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH);
+
clk_data = &data->clk_data;
clk_data->clk_num = count;
clk_data->clks = devm_kcalloc(&pdev->dev, count, sizeof(struct clk *),
--
2.39.0
^ permalink raw reply related [flat|nested] 29+ messages in thread
* [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:54 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 03/13] clk: axm5516: " Yangtao Li
` (13 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Andreas Färber,
Manivannan Sadhasivam
Cc: Yangtao Li, linux-clk, linux-arm-kernel, linux-actions,
linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/actions/owl-common.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/actions/owl-common.c b/drivers/clk/actions/owl-common.c
index 4de97cc7cb54..9e98e8a92ad7 100644
--- a/drivers/clk/actions/owl-common.c
+++ b/drivers/clk/actions/owl-common.c
@@ -43,10 +43,8 @@ int owl_clk_regmap_init(struct platform_device *pdev,
{
void __iomem *base;
struct regmap *regmap;
- struct resource *res;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->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] 29+ messages in thread
* [PATCH 03/13] clk: axm5516: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-05 6:53 ` [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:54 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 04/13] clk: bm1880: " Yangtao Li
` (12 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd; +Cc: Yangtao Li, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/clk-axm5516.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/clk-axm5516.c b/drivers/clk/clk-axm5516.c
index 1afcfdf2e6f9..4a3462ee8f3e 100644
--- a/drivers/clk/clk-axm5516.c
+++ b/drivers/clk/clk-axm5516.c
@@ -541,14 +541,12 @@ MODULE_DEVICE_TABLE(of, axmclk_match_table);
static int axmclk_probe(struct platform_device *pdev)
{
void __iomem *base;
- struct resource *res;
int i, ret;
struct device *dev = &pdev->dev;
struct regmap *regmap;
size_t num_clks;
- 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] 29+ messages in thread
* [PATCH 04/13] clk: bm1880: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-05 6:53 ` [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-05 6:53 ` [PATCH 03/13] clk: axm5516: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:54 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 05/13] clk: fsl-sai: " Yangtao Li
` (11 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Manivannan Sadhasivam, Michael Turquette, Stephen Boyd
Cc: Yangtao Li, linux-arm-kernel, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/clk-bm1880.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/clk/clk-bm1880.c b/drivers/clk/clk-bm1880.c
index 2a19e50fff68..a3814817ba86 100644
--- a/drivers/clk/clk-bm1880.c
+++ b/drivers/clk/clk-bm1880.c
@@ -876,16 +876,13 @@ static int bm1880_clk_probe(struct platform_device *pdev)
struct bm1880_clock_data *clk_data;
void __iomem *pll_base, *sys_base;
struct device *dev = &pdev->dev;
- struct resource *res;
int num_clks, i;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- pll_base = devm_ioremap_resource(&pdev->dev, res);
+ pll_base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(pll_base))
return PTR_ERR(pll_base);
- res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
- sys_base = devm_ioremap_resource(&pdev->dev, res);
+ sys_base = devm_platform_ioremap_resource(pdev, 1);
if (IS_ERR(sys_base))
return PTR_ERR(sys_base);
--
2.39.0
^ permalink raw reply related [flat|nested] 29+ messages in thread
* [PATCH 05/13] clk: fsl-sai: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (2 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 04/13] clk: bm1880: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 06/13] clk: gemini: " Yangtao Li
` (10 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd; +Cc: Yangtao Li, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/clk-fsl-sai.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/clk-fsl-sai.c b/drivers/clk/clk-fsl-sai.c
index ee5baf993ff2..cba45e07562d 100644
--- a/drivers/clk/clk-fsl-sai.c
+++ b/drivers/clk/clk-fsl-sai.c
@@ -33,14 +33,12 @@ static int fsl_sai_clk_probe(struct platform_device *pdev)
struct clk_parent_data pdata = { .index = 0 };
void __iomem *base;
struct clk_hw *hw;
- struct resource *res;
sai_clk = devm_kzalloc(dev, sizeof(*sai_clk), GFP_KERNEL);
if (!sai_clk)
return -ENOMEM;
- 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] 29+ messages in thread
* [PATCH 06/13] clk: gemini: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (3 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 05/13] clk: fsl-sai: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 07/13] clk: hsdk-pll: " Yangtao Li
` (9 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd; +Cc: Yangtao Li, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/clk-gemini.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/clk-gemini.c b/drivers/clk/clk-gemini.c
index a23fa6d47ef1..4a085b042d22 100644
--- a/drivers/clk/clk-gemini.c
+++ b/drivers/clk/clk-gemini.c
@@ -276,7 +276,6 @@ static int gemini_clk_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct device_node *np = dev->of_node;
unsigned int mult, div;
- struct resource *res;
u32 val;
int ret;
int i;
@@ -286,8 +285,7 @@ static int gemini_clk_probe(struct platform_device *pdev)
return -ENOMEM;
/* Remap the system controller for the exclusive register */
- 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] 29+ messages in thread
* [PATCH 07/13] clk: hsdk-pll: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (4 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 06/13] clk: gemini: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: " Yangtao Li
` (8 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Eugeniy Paltsev, Michael Turquette, Stephen Boyd
Cc: Yangtao Li, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/clk-hsdk-pll.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/clk-hsdk-pll.c b/drivers/clk/clk-hsdk-pll.c
index 33b48ea5ea3d..860519152e5e 100644
--- a/drivers/clk/clk-hsdk-pll.c
+++ b/drivers/clk/clk-hsdk-pll.c
@@ -304,7 +304,6 @@ static const struct clk_ops hsdk_pll_ops = {
static int hsdk_pll_clk_probe(struct platform_device *pdev)
{
int ret;
- struct resource *mem;
const char *parent_name;
unsigned int num_parents;
struct hsdk_pll_clk *pll_clk;
@@ -315,8 +314,7 @@ static int hsdk_pll_clk_probe(struct platform_device *pdev)
if (!pll_clk)
return -ENOMEM;
- mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- pll_clk->regs = devm_ioremap_resource(dev, mem);
+ pll_clk->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(pll_clk->regs))
return PTR_ERR(pll_clk->regs);
--
2.39.0
^ permalink raw reply related [flat|nested] 29+ messages in thread
* [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (5 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 07/13] clk: hsdk-pll: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-07-25 7:30 ` Abel Vesa
2023-07-05 6:53 ` [PATCH 09/13] clk: mediatek: " Yangtao Li
` (7 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Abel Vesa, Peng Fan, Michael Turquette, Stephen Boyd, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
NXP Linux Team
Cc: Yangtao Li, linux-clk, linux-arm-kernel, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c
index 5e31a6a24b3a..e0ee9a2572d0 100644
--- a/drivers/clk/imx/clk-imx8qxp-lpcg.c
+++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c
@@ -183,7 +183,6 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev,
unsigned int bit_offset[IMX_LPCG_MAX_CLKS];
struct clk_hw_onecell_data *clk_data;
struct clk_hw **clk_hws;
- struct resource *res;
void __iomem *base;
int count;
int idx;
@@ -193,8 +192,7 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev,
if (!of_device_is_compatible(np, "fsl,imx8qxp-lpcg"))
return -EINVAL;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->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] 29+ messages in thread
* [PATCH 09/13] clk: mediatek: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (6 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (6 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Matthias Brugger,
AngeloGioacchino Del Regno
Cc: Yangtao Li, linux-clk, linux-kernel, linux-arm-kernel,
linux-mediatek
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/mediatek/clk-mt2701.c | 6 ++----
drivers/clk/mediatek/clk-mt6765.c | 21 ++++++---------------
2 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c
index 4a154da8a543..4269eb37be2f 100644
--- a/drivers/clk/mediatek/clk-mt2701.c
+++ b/drivers/clk/mediatek/clk-mt2701.c
@@ -663,9 +663,8 @@ static int mtk_topckgen_init(struct platform_device *pdev)
struct clk_hw_onecell_data *clk_data;
void __iomem *base;
struct device_node *node = pdev->dev.of_node;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
@@ -887,9 +886,8 @@ static int mtk_pericfg_init(struct platform_device *pdev)
void __iomem *base;
int r;
struct device_node *node = pdev->dev.of_node;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
diff --git a/drivers/clk/mediatek/clk-mt6765.c b/drivers/clk/mediatek/clk-mt6765.c
index 0377e6dd3206..bd957d7c6d54 100644
--- a/drivers/clk/mediatek/clk-mt6765.c
+++ b/drivers/clk/mediatek/clk-mt6765.c
@@ -731,13 +731,10 @@ static int clk_mt6765_apmixed_probe(struct platform_device *pdev)
int r;
struct device_node *node = pdev->dev.of_node;
void __iomem *base;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(base)) {
- pr_err("%s(): ioremap failed\n", __func__);
+ base = devm_platform_ioremap_resource(pdev, 0);
+ if (IS_ERR(base))
return PTR_ERR(base);
- }
clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK);
@@ -766,13 +763,10 @@ static int clk_mt6765_top_probe(struct platform_device *pdev)
struct device_node *node = pdev->dev.of_node;
void __iomem *base;
struct clk_hw_onecell_data *clk_data;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(base)) {
- pr_err("%s(): ioremap failed\n", __func__);
+ base = devm_platform_ioremap_resource(pdev, 0);
+ if (IS_ERR(base))
return PTR_ERR(base);
- }
clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK);
@@ -807,13 +801,10 @@ static int clk_mt6765_ifr_probe(struct platform_device *pdev)
int r;
struct device_node *node = pdev->dev.of_node;
void __iomem *base;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(base)) {
- pr_err("%s(): ioremap failed\n", __func__);
+ base = devm_platform_ioremap_resource(pdev, 0);
+ if (IS_ERR(base))
return PTR_ERR(base);
- }
clk_data = mtk_alloc_clk_data(CLK_IFR_NR_CLK);
--
2.39.0
^ permalink raw reply related [flat|nested] 29+ messages in thread
* [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (7 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 09/13] clk: mediatek: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:52 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource() Yangtao Li
` (5 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Tero Kristo, Michael Turquette, Stephen Boyd
Cc: Yangtao Li, linux-omap, linux-clk, linux-kernel
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/ti/adpll.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/clk/ti/adpll.c b/drivers/clk/ti/adpll.c
index 6ecbba4342c5..ff42ea75cb43 100644
--- a/drivers/clk/ti/adpll.c
+++ b/drivers/clk/ti/adpll.c
@@ -881,14 +881,10 @@ static int ti_adpll_probe(struct platform_device *pdev)
dev_set_drvdata(d->dev, d);
spin_lock_init(&d->lock);
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res)
- return -ENODEV;
- d->pa = res->start;
-
- d->iobase = devm_ioremap_resource(dev, res);
+ d->iobase = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(d->iobase))
return PTR_ERR(d->iobase);
+ d->pa = res->start;
err = ti_adpll_init_registers(d);
if (err)
--
2.39.0
^ permalink raw reply related [flat|nested] 29+ messages in thread
* [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (8 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource() Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:52 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 12/13] clk: nuvoton: " Yangtao Li
` (4 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Dinh Nguyen, Michael Turquette, Stephen Boyd
Cc: Yangtao Li, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/socfpga/clk-agilex.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/socfpga/clk-agilex.c b/drivers/clk/socfpga/clk-agilex.c
index 74d21bd82710..ece4684a5fd7 100644
--- a/drivers/clk/socfpga/clk-agilex.c
+++ b/drivers/clk/socfpga/clk-agilex.c
@@ -458,12 +458,10 @@ static int agilex_clkmgr_init(struct platform_device *pdev)
struct device_node *np = pdev->dev.of_node;
struct device *dev = &pdev->dev;
struct stratix10_clock_data *clk_data;
- struct resource *res;
void __iomem *base;
int i, num_clks;
- 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] 29+ messages in thread
* [PATCH 12/13] clk: nuvoton: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (9 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource() Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-07-05 7:57 ` Jacky Huang
2023-08-22 21:51 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 13/13] clk: mvebu: " Yangtao Li
` (3 subsequent siblings)
14 siblings, 2 replies; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Jacky Huang, Shan-Chun Hung, Michael Turquette, Stephen Boyd
Cc: Yangtao Li, linux-arm-kernel, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/nuvoton/clk-ma35d1.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/clk/nuvoton/clk-ma35d1.c b/drivers/clk/nuvoton/clk-ma35d1.c
index f1fe7edd21b5..9f65d0623517 100644
--- a/drivers/clk/nuvoton/clk-ma35d1.c
+++ b/drivers/clk/nuvoton/clk-ma35d1.c
@@ -460,7 +460,6 @@ static int ma35d1_clocks_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct device_node *clk_node = pdev->dev.of_node;
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
void __iomem *clk_base;
static struct clk_hw **hws;
static struct clk_hw_onecell_data *ma35d1_hw_data;
@@ -476,7 +475,7 @@ static int ma35d1_clocks_probe(struct platform_device *pdev)
ma35d1_hw_data->num = CLK_MAX_IDX;
hws = ma35d1_hw_data->hws;
- clk_base = devm_ioremap_resource(dev, res);
+ clk_base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(clk_base))
return PTR_ERR(clk_base);
--
2.39.0
^ permalink raw reply related [flat|nested] 29+ messages in thread
* [PATCH 13/13] clk: mvebu: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (10 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 12/13] clk: nuvoton: " Yangtao Li
@ 2023-07-05 6:53 ` Yangtao Li
2023-08-22 21:51 ` Stephen Boyd
2023-07-11 18:27 ` [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Jernej Škrabec
` (2 subsequent siblings)
14 siblings, 1 reply; 29+ messages in thread
From: Yangtao Li @ 2023-07-05 6:53 UTC (permalink / raw)
To: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth,
Michael Turquette, Stephen Boyd
Cc: Yangtao Li, linux-arm-kernel, linux-clk, linux-kernel
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/mvebu/armada-37xx-periph.c | 4 +---
drivers/clk/mvebu/armada-37xx-tbg.c | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 3ae6078f6ff7..b576766e67bc 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -733,7 +733,6 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev)
const struct clk_periph_data *data;
struct device *dev = &pdev->dev;
int num_periph = 0, i, ret;
- struct resource *res;
data = of_device_get_match_data(dev);
if (!data)
@@ -754,8 +753,7 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev)
return -ENOMEM;
driver_data->hw_data->num = num_periph;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- driver_data->reg = devm_ioremap_resource(dev, res);
+ driver_data->reg = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(driver_data->reg))
return PTR_ERR(driver_data->reg);
diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c
index eccc1aeefbaf..e94c336e0f1c 100644
--- a/drivers/clk/mvebu/armada-37xx-tbg.c
+++ b/drivers/clk/mvebu/armada-37xx-tbg.c
@@ -84,7 +84,6 @@ static int armada_3700_tbg_clock_probe(struct platform_device *pdev)
struct clk_hw_onecell_data *hw_tbg_data;
struct device *dev = &pdev->dev;
const char *parent_name;
- struct resource *res;
struct clk *parent;
void __iomem *reg;
int i;
@@ -105,8 +104,7 @@ static int armada_3700_tbg_clock_probe(struct platform_device *pdev)
parent_name = __clk_get_name(parent);
clk_put(parent);
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- reg = devm_ioremap_resource(dev, res);
+ reg = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(reg))
return PTR_ERR(reg);
--
2.39.0
^ permalink raw reply related [flat|nested] 29+ messages in thread
* Re: [PATCH 12/13] clk: nuvoton: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 12/13] clk: nuvoton: " Yangtao Li
@ 2023-07-05 7:57 ` Jacky Huang
2023-08-22 21:51 ` Stephen Boyd
1 sibling, 0 replies; 29+ messages in thread
From: Jacky Huang @ 2023-07-05 7:57 UTC (permalink / raw)
To: Yangtao Li, Shan-Chun Hung, Michael Turquette, Stephen Boyd
Cc: linux-arm-kernel, linux-clk, linux-kernel
On 2023/7/5 下午 02:53, Yangtao Li wrote:
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
> drivers/clk/nuvoton/clk-ma35d1.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
>
Acked-by: Jacky Huang <ychuang3@nuvoton.com>
Best Regards,
Jacky Huang
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (11 preceding siblings ...)
2023-07-05 6:53 ` [PATCH 13/13] clk: mvebu: " Yangtao Li
@ 2023-07-11 18:27 ` Jernej Škrabec
2023-07-30 22:44 ` Jernej Škrabec
2023-08-14 10:09 ` Abel Vesa
14 siblings, 0 replies; 29+ messages in thread
From: Jernej Škrabec @ 2023-07-11 18:27 UTC (permalink / raw)
To: Emilio López, Michael Turquette, Stephen Boyd, Chen-Yu Tsai,
Samuel Holland, Yangtao Li
Cc: Yangtao Li, linux-clk, linux-arm-kernel, linux-sunxi,
linux-kernel
Dne sreda, 05. julij 2023 ob 08:53:01 CEST je Yangtao Li napisal(a):
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> drivers/clk/sunxi/clk-sun9i-mmc.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/clk/sunxi/clk-sun9i-mmc.c
> b/drivers/clk/sunxi/clk-sun9i-mmc.c index 636bcf2439ef..0862b02b1ed4 100644
> --- a/drivers/clk/sunxi/clk-sun9i-mmc.c
> +++ b/drivers/clk/sunxi/clk-sun9i-mmc.c
> @@ -108,15 +108,13 @@ static int sun9i_a80_mmc_config_clk_probe(struct
> platform_device *pdev)
>
> spin_lock_init(&data->lock);
>
> - r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - if (!r)
> - return -EINVAL;
> - /* one clock/reset pair per word */
> - count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH);
> - data->membase = devm_ioremap_resource(&pdev->dev, r);
> + data->membase = devm_platform_get_and_ioremap_resource(pdev, 0,
&r);
> if (IS_ERR(data->membase))
> return PTR_ERR(data->membase);
>
> + /* one clock/reset pair per word */
> + count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH);
> +
> clk_data = &data->clk_data;
> clk_data->clk_num = count;
> clk_data->clks = devm_kcalloc(&pdev->dev, count, sizeof(struct clk
*),
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: " Yangtao Li
@ 2023-07-25 7:30 ` Abel Vesa
0 siblings, 0 replies; 29+ messages in thread
From: Abel Vesa @ 2023-07-25 7:30 UTC (permalink / raw)
To: Yangtao Li
Cc: Abel Vesa, Peng Fan, Michael Turquette, Stephen Boyd, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
NXP Linux Team, linux-clk, linux-arm-kernel, linux-kernel
On 23-07-05 14:53:08, Yangtao Li wrote:
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
> ---
> drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c
> index 5e31a6a24b3a..e0ee9a2572d0 100644
> --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c
> +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c
> @@ -183,7 +183,6 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev,
> unsigned int bit_offset[IMX_LPCG_MAX_CLKS];
> struct clk_hw_onecell_data *clk_data;
> struct clk_hw **clk_hws;
> - struct resource *res;
> void __iomem *base;
> int count;
> int idx;
> @@ -193,8 +192,7 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev,
> if (!of_device_is_compatible(np, "fsl,imx8qxp-lpcg"))
> return -EINVAL;
>
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - base = devm_ioremap_resource(&pdev->dev, res);
> + base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(base))
> return PTR_ERR(base);
>
> --
> 2.39.0
>
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (12 preceding siblings ...)
2023-07-11 18:27 ` [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Jernej Škrabec
@ 2023-07-30 22:44 ` Jernej Škrabec
2023-08-14 10:09 ` Abel Vesa
14 siblings, 0 replies; 29+ messages in thread
From: Jernej Škrabec @ 2023-07-30 22:44 UTC (permalink / raw)
To: Emilio López, Michael Turquette, Stephen Boyd, Chen-Yu Tsai,
Samuel Holland, Yangtao Li
Cc: Yangtao Li, linux-clk, linux-arm-kernel, linux-sunxi,
linux-kernel
Dne sreda, 05. julij 2023 ob 08:53:01 CEST je Yangtao Li napisal(a):
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
Applied, thanks!
Best regards,
Jernej
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource()
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
` (13 preceding siblings ...)
2023-07-30 22:44 ` Jernej Škrabec
@ 2023-08-14 10:09 ` Abel Vesa
14 siblings, 0 replies; 29+ messages in thread
From: Abel Vesa @ 2023-08-14 10:09 UTC (permalink / raw)
To: Emilio López, Michael Turquette, Stephen Boyd, Chen-Yu Tsai,
Jernej Skrabec, Samuel Holland, Yangtao Li
Cc: linux-clk, linux-arm-kernel, linux-sunxi, linux-kernel
On Wed, 05 Jul 2023 14:53:01 +0800, Yangtao Li wrote:
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
>
>
Applied, thanks!
[08/13] clk: imx: clk-imx8qxp-lpcg: Convert to devm_platform_ioremap_resource()
commit: 94945b23133db0b698ffe764d8a82593906d1e74
Best regards,
--
Abel Vesa <abel.vesa@linaro.org>
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 13/13] clk: mvebu: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 13/13] clk: mvebu: " Yangtao Li
@ 2023-08-22 21:51 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:51 UTC (permalink / raw)
To: Andrew Lunn, Gregory Clement, Michael Turquette,
Sebastian Hesselbarth, Yangtao Li
Cc: Yangtao Li, linux-arm-kernel, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:13)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 12/13] clk: nuvoton: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 12/13] clk: nuvoton: " Yangtao Li
2023-07-05 7:57 ` Jacky Huang
@ 2023-08-22 21:51 ` Stephen Boyd
1 sibling, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:51 UTC (permalink / raw)
To: Jacky Huang, Michael Turquette, Shan-Chun Hung, Yangtao Li
Cc: Yangtao Li, linux-arm-kernel, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:12)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource() Yangtao Li
@ 2023-08-22 21:52 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:52 UTC (permalink / raw)
To: Dinh Nguyen, Michael Turquette, Yangtao Li
Cc: Yangtao Li, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:11)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource()
2023-07-05 6:53 ` [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource() Yangtao Li
@ 2023-08-22 21:52 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:52 UTC (permalink / raw)
To: Michael Turquette, Tero Kristo, Yangtao Li
Cc: Yangtao Li, linux-omap, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:10)
> Convert platform_get_resource(), devm_ioremap_resource() to a single
> call to devm_platform_get_and_ioremap_resource(), as this is exactly
> what this function does.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 09/13] clk: mediatek: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 09/13] clk: mediatek: " Yangtao Li
@ 2023-08-22 21:53 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:53 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Michael Turquette,
Yangtao Li
Cc: Yangtao Li, linux-clk, linux-kernel, linux-arm-kernel,
linux-mediatek
Quoting Yangtao Li (2023-07-04 23:53:09)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 07/13] clk: hsdk-pll: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 07/13] clk: hsdk-pll: " Yangtao Li
@ 2023-08-22 21:53 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:53 UTC (permalink / raw)
To: Eugeniy Paltsev, Michael Turquette, Yangtao Li
Cc: Yangtao Li, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:07)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 06/13] clk: gemini: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 06/13] clk: gemini: " Yangtao Li
@ 2023-08-22 21:53 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:53 UTC (permalink / raw)
To: Michael Turquette, Yangtao Li; +Cc: Yangtao Li, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:06)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 05/13] clk: fsl-sai: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 05/13] clk: fsl-sai: " Yangtao Li
@ 2023-08-22 21:53 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:53 UTC (permalink / raw)
To: Michael Turquette, Yangtao Li; +Cc: Yangtao Li, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:05)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 04/13] clk: bm1880: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 04/13] clk: bm1880: " Yangtao Li
@ 2023-08-22 21:54 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:54 UTC (permalink / raw)
To: Manivannan Sadhasivam, Michael Turquette, Yangtao Li
Cc: Yangtao Li, linux-arm-kernel, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:04)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 03/13] clk: axm5516: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 03/13] clk: axm5516: " Yangtao Li
@ 2023-08-22 21:54 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:54 UTC (permalink / raw)
To: Michael Turquette, Yangtao Li; +Cc: Yangtao Li, linux-clk, linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:03)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
* Re: [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource()
2023-07-05 6:53 ` [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() Yangtao Li
@ 2023-08-22 21:54 ` Stephen Boyd
0 siblings, 0 replies; 29+ messages in thread
From: Stephen Boyd @ 2023-08-22 21:54 UTC (permalink / raw)
To: Andreas Färber, Manivannan Sadhasivam, Michael Turquette,
Yangtao Li
Cc: Yangtao Li, linux-clk, linux-arm-kernel, linux-actions,
linux-kernel
Quoting Yangtao Li (2023-07-04 23:53:02)
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 29+ messages in thread
end of thread, other threads:[~2023-08-22 21:54 UTC | newest]
Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 6:53 [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-05 6:53 ` [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-08-22 21:54 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 03/13] clk: axm5516: " Yangtao Li
2023-08-22 21:54 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 04/13] clk: bm1880: " Yangtao Li
2023-08-22 21:54 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 05/13] clk: fsl-sai: " Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 06/13] clk: gemini: " Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 07/13] clk: hsdk-pll: " Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: " Yangtao Li
2023-07-25 7:30 ` Abel Vesa
2023-07-05 6:53 ` [PATCH 09/13] clk: mediatek: " Yangtao Li
2023-08-22 21:53 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-08-22 21:52 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-08-22 21:52 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 12/13] clk: nuvoton: " Yangtao Li
2023-07-05 7:57 ` Jacky Huang
2023-08-22 21:51 ` Stephen Boyd
2023-07-05 6:53 ` [PATCH 13/13] clk: mvebu: " Yangtao Li
2023-08-22 21:51 ` Stephen Boyd
2023-07-11 18:27 ` [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Jernej Škrabec
2023-07-30 22:44 ` Jernej Škrabec
2023-08-14 10:09 ` Abel Vesa
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).