The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v1] clk:davinci: make use of dev_err_cast_probe()
@ 2024-08-28  7:35 Yuesong Li
  2024-08-28 14:13 ` David Lechner
  2024-08-28 20:14 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Yuesong Li @ 2024-08-28  7:35 UTC (permalink / raw)
  To: david, mturquette, sboyd
  Cc: linux-clk, linux-kernel, opensource.kernel, Yuesong Li

Using dev_err_cast_probe() to simplify the code.

Signed-off-by: Yuesong Li <liyuesong@vivo.com>
---
 drivers/clk/davinci/da8xx-cfgchip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c
index f6da66748573..a5109fe8b16e 100644
--- a/drivers/clk/davinci/da8xx-cfgchip.c
+++ b/drivers/clk/davinci/da8xx-cfgchip.c
@@ -513,8 +513,7 @@ da8xx_cfgchip_register_usb0_clk48(struct device *dev,
 
 	fck_clk = devm_clk_get(dev, "fck");
 	if (IS_ERR(fck_clk)) {
-		dev_err_probe(dev, PTR_ERR(fck_clk), "Missing fck clock\n");
-		return ERR_CAST(fck_clk);
+		return dev_err_cast_probe(dev, fck_clk, "Missing fck clock\n");
 	}
 
 	usb0 = devm_kzalloc(dev, sizeof(*usb0), GFP_KERNEL);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] clk:davinci: make use of dev_err_cast_probe()
  2024-08-28  7:35 [PATCH v1] clk:davinci: make use of dev_err_cast_probe() Yuesong Li
@ 2024-08-28 14:13 ` David Lechner
  2024-08-28 20:14 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: David Lechner @ 2024-08-28 14:13 UTC (permalink / raw)
  To: Yuesong Li, mturquette, sboyd; +Cc: linux-clk, linux-kernel, opensource.kernel

On 8/28/24 2:35 AM, Yuesong Li wrote:
> Using dev_err_cast_probe() to simplify the code.
> 
> Signed-off-by: Yuesong Li <liyuesong@vivo.com>
> ---

Reviewed-by: David Lechner <david@lechnology.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] clk:davinci: make use of dev_err_cast_probe()
  2024-08-28  7:35 [PATCH v1] clk:davinci: make use of dev_err_cast_probe() Yuesong Li
  2024-08-28 14:13 ` David Lechner
@ 2024-08-28 20:14 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2024-08-28 20:14 UTC (permalink / raw)
  To: Yuesong Li, david, mturquette
  Cc: linux-clk, linux-kernel, opensource.kernel, Yuesong Li

Quoting Yuesong Li (2024-08-28 00:35:15)
> Using dev_err_cast_probe() to simplify the code.
> 
> Signed-off-by: Yuesong Li <liyuesong@vivo.com>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-28 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28  7:35 [PATCH v1] clk:davinci: make use of dev_err_cast_probe() Yuesong Li
2024-08-28 14:13 ` David Lechner
2024-08-28 20:14 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox