Skip to content
Commit ea449f7f authored by Sebastian Reichel's avatar Sebastian Reichel Committed by David S. Miller
Browse files

net: ethernet: stmmac: dwmac-rk: rework optional clock handling



The clock requesting code is quite repetitive. Fix this by requesting
the clocks via devm_clk_bulk_get_optional. The optional variant has been
used, since this is effectively what the old code did. The exact clocks
required depend on the platform and configuration. As a side effect
this change adds correct -EPROBE_DEFER handling.

Suggested-by: default avatarJakub Kicinski <kuba@kernel.org>
Suggested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Fixes: 7ad269ea ("GMAC: add driver for Rockchip RK3288 SoCs integrated GMAC")
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bbda0f0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment