mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
mailbox: rockchip: Convert to use dev_err_probe()
This is more compact in source code and also compiles to smaller code. Bloat-o-meter reports: add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-76 (-76) Function old new delta rockchip_mbox_probe 1596 1592 -4 _entry_ptr 24 16 -8 __func__ 62 42 -20 _entry 132 88 -44 Total: Before=6693, After=6617, chg -1.14% Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
parent
e04841a12f
commit
2fda29f09f
|
|
@ -215,9 +215,9 @@ static int rockchip_mbox_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_mbox_controller_register(&pdev->dev, &mb->mbox);
|
||||
if (ret < 0)
|
||||
dev_err(&pdev->dev, "Failed to register mailbox: %d\n", ret);
|
||||
return dev_err_probe(&pdev->dev, ret, "Failed to register mailbox\n");
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct platform_driver rockchip_mbox_driver = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user