r8152: move some functions from probe to open
authorhayeswang <hayeswang@realtek.com>
Tue, 18 Feb 2014 13:49:05 +0000 (21:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2014 21:40:01 +0000 (16:40 -0500)
commit7e9da48161506bb24d6072be9dfcd62ac8d95b88
tree40bf21be28fac330c7881ff804f605334953cbdd
parentaa66a5f1af163b6c90fca5a06c7fdab121b70cd2
r8152: move some functions from probe to open

Add up method for rtl_ops and asign relative functions. Move
clear_bp() and hw_phy_cfg() from init method to up method of rtl_ops.
Call rtl_ops.up() for ndo_open() and rtl_ops.down for ndo_stop().

Replace allocating the memory in probe() with in ndo_open().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c