Thread (46 messages) 46 messages, 7 authors, 2024-01-10

Re: [PATCH net-next 07/10] net: dsa: qca8k: consolidate calls to a single devm_of_mdiobus_register()

flat view

From: Alvin Šipraga <hidden>
Date: 2024-01-04 15:49:26

On Thu, Jan 04, 2024 at 04:00:34PM +0200, Vladimir Oltean wrote:
__of_mdiobus_register() already calls __mdiobus_register() if the
OF node provided as argument is NULL. We can take advantage of that
and simplify the 2 code path, calling devm_of_mdiobus_register() only
once for both cases.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Much neater!

Reviewed-by: Alvin Šipraga <redacted>
quoted hunk ↗ jump to hunk
---
 drivers/net/dsa/qca/qca8k-8xxx.c | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help