diff options
author | Vladimir Oltean <[email protected]> | 2024-05-30 19:33:29 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-06-03 13:06:15 +0100 |
commit | 4510bbd38cbef7e6fc1a786f3e0213ba07fe0a00 (patch) | |
tree | a05e1fbda3471c2457c804e5df57905198f97386 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | cc711c523da7280c3bb01ec726596154f5af9798 (diff) |
net: dsa: ocelot: consistently use devres in felix_pci_probe()
Russell King suggested that felix_vsc9959, seville_vsc9953 and
ocelot_ext have a large portion of duplicated init and teardown code,
which could be made common [1]. The teardown code could even be
simplified away if we made use of devres, something which is used here
and there in the felix driver, just not very consistently.
[1] https://lore.kernel.org/all/[email protected]/
Prepare the ground in the felix_vsc9959 driver, by allocating the data
structures using devres and deleting the kfree() calls. This also
deletes the "Failed to allocate ..." message, since memory allocation
errors are extremely loud anyway, and it's hard to miss them.
Suggested-by: "Russell King (Oracle)" <[email protected]>
Signed-off-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions