diff options
author | Claudiu Manoil <[email protected]> | 2019-08-01 14:52:49 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-08-02 18:22:18 -0700 |
commit | 2152e7a2d9a8c29e8850adabd2175fa042ad5bb8 (patch) | |
tree | 755fcfdfbac926ecf70a89ed2ebb438a5b908987 /tools/perf/scripts/python | |
parent | 4a9866179d51ca0df9779364c33d5869a1c6311c (diff) |
enetc: Clean up local mdio bus allocation
What's needed is basically a pointer to the mdio registers.
This is one way to store it inside bus->priv allocated space,
without upsetting sparse.
Reworked accessors to avoid __iomem casting.
Used devm_* variant to further clean up the init error /
remove paths.
Fixes following sparse warning:
warning: incorrect type in assignment (different address spaces)
expected void *priv
got struct enetc_mdio_regs [noderef] <asn:2>*[assigned] regs
Fixes: ebfcb23d62ab ("enetc: Add ENETC PF level external MDIO support")
Signed-off-by: Claudiu Manoil <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions