summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2016-09-01 05:47:34 +0300
committerDavid S. Miller <davem@davemloft.net>2016-09-01 06:53:48 +0300
commit1e515b7fdbaeef29b1025c09b50ebbb132a39208 (patch)
treee97c39e963814de7769f1c60fd2eb3ba34569b9a /tools/perf/scripts/python
parentb5776f01bf1f36a6c89c6dc407dda6509002e0d7 (diff)
downloadlinux-1e515b7fdbaeef29b1025c09b50ebbb132a39208.tar.xz
net: ethernet: mediatek: use devm_mdiobus_alloc instead of mdiobus_alloc inside mtk_mdio_init
a lot of parts in the driver uses devm_* APIs to gain benefits from the device resource management, so devm_mdiobus_alloc is also used instead of mdiobus_alloc to have more elegant code flow. Using common code provided by the devm_* helps to 1) have simplified the code flow as [1] says 2) decrease the risk of incorrect error handling by human 3) only a few drivers used it since it was proposed on linux 3.16, so just hope to promote for this. Ref: [1] https://patchwork.ozlabs.org/patch/344093/ Signed-off-by: Sean Wang <sean.wang@mediatek.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions