diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-03-26 15:06:30 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-03-27 20:33:24 -0400 |
commit | cb52d8970eee65bf2c47d9a91bd4f58b17f595f4 (patch) | |
tree | 43521ba99805f293e09a284901cb5435afeab789 /drivers/scsi/ibmvscsi/ibmvstgt.c | |
parent | 1d9a47315042606b4217691bcea36cfa6ccbde66 (diff) |
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>
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvstgt.c')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvstgt.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvstgt.c b/drivers/scsi/ibmvscsi/ibmvstgt.c index 2256babe0474..aa7ed81e9237 100644 --- a/drivers/scsi/ibmvscsi/ibmvstgt.c +++ b/drivers/scsi/ibmvscsi/ibmvstgt.c | |||
@@ -918,10 +918,7 @@ static struct vio_driver ibmvstgt_driver = { | |||
918 | .id_table = ibmvstgt_device_table, | 918 | .id_table = ibmvstgt_device_table, |
919 | .probe = ibmvstgt_probe, | 919 | .probe = ibmvstgt_probe, |
920 | .remove = ibmvstgt_remove, | 920 | .remove = ibmvstgt_remove, |
921 | .driver = { | 921 | .name = "ibmvscsis", |
922 | .name = "ibmvscsis", | ||
923 | .owner = THIS_MODULE, | ||
924 | } | ||
925 | }; | 922 | }; |
926 | 923 | ||
927 | static int get_system_info(void) | 924 | static int get_system_info(void) |