diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2015-02-23 04:20:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-23 15:08:31 -0500 |
commit | 78fad34eb8b22ce588b9ebdab39965210588e4b5 (patch) | |
tree | 29ed8642455eab4c32ba35ca727540bc364eb00a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b7853d73e39b099bbee149cac4c34dbf98f3fefa (diff) |
be2net: move adapter fields alloc/free code to new routines
The members of be_adapter struct were being allocated in two separate
routines -- be_ctrl_init() and be_stats_init(). Also, some other members
were allocated elsewhere. This patch moves the alloc/free code into
be_drv_init/cleanup() routines. The be_pci_map_bars() routine that was
called from be_ctrl_init() is now called directly from be_probe().
The new routine be_drv_init() will now be the place-holder for allocating
memory for any new be_adapter{} members in the future.
Some routines needed to be moved to provide forward definitions for their
calls.
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions