netdevsim: move device registration and related code to bus.c
authorJiri Pirko <jiri@mellanox.com>
Thu, 25 Apr 2019 13:59:45 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 05:52:02 +0000 (01:52 -0400)
commit40e4fe4ce115c409c3e2fbb247085103ef1cc755
treebad9c42265ee5187263de8c2a118c2def41fe7d7
parent925f5afedb93f7c80958c6bf7ce6cc31542076dc
netdevsim: move device registration and related code to bus.c

Move netdevsim device registration into bus.c and alongside with that
the related sysfs attributes. Introduce new struct nsim_bus_dev to
represent a netdevsim device on netdevsim bus.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bus.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdev.c
drivers/net/netdevsim/netdevsim.h