powerpc+sparc/vio: Modernize driver registration
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 26 Mar 2012 19:06:30 +0000 (19:06 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 28 Mar 2012 00:33:24 +0000 (11:33 +1100)
commitcb52d8970eee65bf2c47d9a91bd4f58b17f595f4
tree43521ba99805f293e09a284901cb5435afeab789
parent1d9a47315042606b4217691bcea36cfa6ccbde66
powerpc+sparc/vio: Modernize driver registration

This makes vio_register_driver() get the module owner & name at compile
time like PCI drivers do, and adds a name pointer directly in struct
vio_driver to avoid having to explicitly initialize the embedded
struct device.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: David S. Miller <davem@davemloft.net>
13 files changed:
arch/powerpc/include/asm/vio.h
arch/powerpc/kernel/vio.c
arch/sparc/include/asm/vio.h
arch/sparc/kernel/ds.c
arch/sparc/kernel/vio.c
drivers/block/sunvdc.c
drivers/net/ethernet/ibm/ibmveth.c
drivers/net/ethernet/sun/sunvnet.c
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvscsi.c
drivers/scsi/ibmvscsi/ibmvstgt.c
drivers/tty/hvc/hvc_vio.c
drivers/tty/hvc/hvcs.c