diff options
author | Borislav Petkov <bp@suse.de> | 2022-03-21 12:34:57 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-03-21 12:34:57 +0300 |
commit | 1422df58e5eb83dca131dc64e0f307a1f9e56078 (patch) | |
tree | f54bb7952a406cd783cbdbfe1b5ac4f80de02d68 /drivers/soc/aspeed/aspeed-lpc-ctrl.c | |
parent | e1bca853dddcb57cbf084acbf35e3654cef6fc75 (diff) | |
parent | 2151c84ece920dc55942495004a823cbecb921e5 (diff) | |
download | linux-1422df58e5eb83dca131dc64e0f307a1f9e56078.tar.xz |
Merge branch 'edac-amd64' into edac-updates-for-v5.18
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/soc/aspeed/aspeed-lpc-ctrl.c')
-rw-r--r-- | drivers/soc/aspeed/aspeed-lpc-ctrl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/soc/aspeed/aspeed-lpc-ctrl.c b/drivers/soc/aspeed/aspeed-lpc-ctrl.c index 72771e018c42..258894ed234b 100644 --- a/drivers/soc/aspeed/aspeed-lpc-ctrl.c +++ b/drivers/soc/aspeed/aspeed-lpc-ctrl.c @@ -306,10 +306,9 @@ static int aspeed_lpc_ctrl_probe(struct platform_device *pdev) } lpc_ctrl->clk = devm_clk_get(dev, NULL); - if (IS_ERR(lpc_ctrl->clk)) { - dev_err(dev, "couldn't get clock\n"); - return PTR_ERR(lpc_ctrl->clk); - } + if (IS_ERR(lpc_ctrl->clk)) + return dev_err_probe(dev, PTR_ERR(lpc_ctrl->clk), + "couldn't get clock\n"); rc = clk_prepare_enable(lpc_ctrl->clk); if (rc) { dev_err(dev, "couldn't enable clock\n"); |