diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/block/sunvdc.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/block/sunvdc.c')
-rw-r--r-- | drivers/block/sunvdc.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c index 564156a8e57..48e8fee9f2d 100644 --- a/drivers/block/sunvdc.c +++ b/drivers/block/sunvdc.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #define DRV_MODULE_VERSION "1.0" | 25 | #define DRV_MODULE_VERSION "1.0" |
26 | #define DRV_MODULE_RELDATE "June 25, 2007" | 26 | #define DRV_MODULE_RELDATE "June 25, 2007" |
27 | 27 | ||
28 | static char version[] = | 28 | static char version[] __devinitdata = |
29 | DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; | 29 | DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; |
30 | MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); | 30 | MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); |
31 | MODULE_DESCRIPTION("Sun LDOM virtual disk client driver"); | 31 | MODULE_DESCRIPTION("Sun LDOM virtual disk client driver"); |
@@ -592,7 +592,7 @@ static int generic_request(struct vdc_port *port, u8 op, void *buf, int len) | |||
592 | return err; | 592 | return err; |
593 | } | 593 | } |
594 | 594 | ||
595 | static int vdc_alloc_tx_ring(struct vdc_port *port) | 595 | static int __devinit vdc_alloc_tx_ring(struct vdc_port *port) |
596 | { | 596 | { |
597 | struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; | 597 | struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING]; |
598 | unsigned long len, entry_size; | 598 | unsigned long len, entry_size; |
@@ -725,7 +725,7 @@ static struct vio_driver_ops vdc_vio_ops = { | |||
725 | .handshake_complete = vdc_handshake_complete, | 725 | .handshake_complete = vdc_handshake_complete, |
726 | }; | 726 | }; |
727 | 727 | ||
728 | static void print_version(void) | 728 | static void __devinit print_version(void) |
729 | { | 729 | { |
730 | static int version_printed; | 730 | static int version_printed; |
731 | 731 | ||
@@ -733,7 +733,8 @@ static void print_version(void) | |||
733 | printk(KERN_INFO "%s", version); | 733 | printk(KERN_INFO "%s", version); |
734 | } | 734 | } |
735 | 735 | ||
736 | static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) | 736 | static int __devinit vdc_port_probe(struct vio_dev *vdev, |
737 | const struct vio_device_id *id) | ||
737 | { | 738 | { |
738 | struct mdesc_handle *hp; | 739 | struct mdesc_handle *hp; |
739 | struct vdc_port *port; | 740 | struct vdc_port *port; |
@@ -838,7 +839,10 @@ static struct vio_driver vdc_port_driver = { | |||
838 | .id_table = vdc_port_match, | 839 | .id_table = vdc_port_match, |
839 | .probe = vdc_port_probe, | 840 | .probe = vdc_port_probe, |
840 | .remove = vdc_port_remove, | 841 | .remove = vdc_port_remove, |
841 | .name = "vdc_port", | 842 | .driver = { |
843 | .name = "vdc_port", | ||
844 | .owner = THIS_MODULE, | ||
845 | } | ||
842 | }; | 846 | }; |
843 | 847 | ||
844 | static int __init vdc_init(void) | 848 | static int __init vdc_init(void) |