]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: move port memory allocation to ksz_common
authorArun Ramadoss <arun.ramadoss@microchip.com>
Tue, 17 May 2022 09:43:29 +0000 (15:13 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 May 2022 11:50:59 +0000 (12:50 +0100)
commite5237df1fd4da06722eca1ed2ed4523b7931dbee
treec22955fbc729b936a410647b5075d6a8cfe14605
parent3304d55d266f0b219f073515d687e5c838c94614
net: dsa: microchip: move port memory allocation to ksz_common

ksz8795 and ksz9477 init function initializes the memory to dev->ports,
mib counters and assigns the ds real number of ports. Since both the
routines are same, moved the allocation of port memory to
ksz_switch_register after init.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.c