From: Sathya Perla Date: Mon, 23 Feb 2015 09:20:08 +0000 (-0500) Subject: be2net: move adapter fields alloc/free code to new routines X-Git-Tag: omap-for-v4.2/o2_dc~131^2~405^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78fad34eb8b22ce588b9ebdab39965210588e4b5;p=pandora-kernel.git 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 Signed-off-by: Kalesh AP Signed-off-by: David S. Miller --- Reading git-diff-tree failed