diff options
author | 2012-01-12 15:23:04 -0800 | |
---|---|---|
committer | 2012-01-12 15:23:04 -0800 | |
commit | eb8a54a78e974e1af3e17fa38bb74d3747c5c1bd (patch) | |
tree | d3642783d7470c26815b7d3c14ea5d5949d7dcdb /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | net: decrement memcg jump label when limit, not usage, is changed (diff) | |
download | wireguard-linux-eb8a54a78e974e1af3e17fa38bb74d3747c5c1bd.tar.xz wireguard-linux-eb8a54a78e974e1af3e17fa38bb74d3747c5c1bd.zip |
phylib: introduce mdiobus_alloc_size()
Introduce function mdiobus_alloc_size() as an alternative to mdiobus_alloc().
Most callers of mdiobus_alloc() also allocate a private data structure, and
then manually point bus->priv to this object. mdiobus_alloc_size()
combines the two operations into one, which simplifies memory management.
The original mdiobus_alloc() now just calls mdiobus_alloc_size(0).
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions