diff options
Diffstat (limited to 'drivers/block/sunvdc.c')
-rw-r--r-- | drivers/block/sunvdc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c index ad9749463d4f..5ca56bfae63c 100644 --- a/drivers/block/sunvdc.c +++ b/drivers/block/sunvdc.c | |||
@@ -81,7 +81,7 @@ struct vdc_port { | |||
81 | 81 | ||
82 | static void vdc_ldc_reset(struct vdc_port *port); | 82 | static void vdc_ldc_reset(struct vdc_port *port); |
83 | static void vdc_ldc_reset_work(struct work_struct *work); | 83 | static void vdc_ldc_reset_work(struct work_struct *work); |
84 | static void vdc_ldc_reset_timer(unsigned long _arg); | 84 | static void vdc_ldc_reset_timer(struct timer_list *t); |
85 | 85 | ||
86 | static inline struct vdc_port *to_vdc_port(struct vio_driver_state *vio) | 86 | static inline struct vdc_port *to_vdc_port(struct vio_driver_state *vio) |
87 | { | 87 | { |
@@ -974,8 +974,7 @@ static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) | |||
974 | */ | 974 | */ |
975 | ldc_timeout = mdesc_get_property(hp, vdev->mp, "vdc-timeout", NULL); | 975 | ldc_timeout = mdesc_get_property(hp, vdev->mp, "vdc-timeout", NULL); |
976 | port->ldc_timeout = ldc_timeout ? *ldc_timeout : 0; | 976 | port->ldc_timeout = ldc_timeout ? *ldc_timeout : 0; |
977 | setup_timer(&port->ldc_reset_timer, vdc_ldc_reset_timer, | 977 | timer_setup(&port->ldc_reset_timer, vdc_ldc_reset_timer, 0); |
978 | (unsigned long)port); | ||
979 | INIT_WORK(&port->ldc_reset_work, vdc_ldc_reset_work); | 978 | INIT_WORK(&port->ldc_reset_work, vdc_ldc_reset_work); |
980 | 979 | ||
981 | err = vio_driver_init(&port->vio, vdev, VDEV_DISK, | 980 | err = vio_driver_init(&port->vio, vdev, VDEV_DISK, |
@@ -1087,9 +1086,9 @@ static void vdc_queue_drain(struct vdc_port *port) | |||
1087 | __blk_end_request_all(req, BLK_STS_IOERR); | 1086 | __blk_end_request_all(req, BLK_STS_IOERR); |
1088 | } | 1087 | } |
1089 | 1088 | ||
1090 | static void vdc_ldc_reset_timer(unsigned long _arg) | 1089 | static void vdc_ldc_reset_timer(struct timer_list *t) |
1091 | { | 1090 | { |
1092 | struct vdc_port *port = (struct vdc_port *) _arg; | 1091 | struct vdc_port *port = from_timer(port, t, ldc_reset_timer); |
1093 | struct vio_driver_state *vio = &port->vio; | 1092 | struct vio_driver_state *vio = &port->vio; |
1094 | unsigned long flags; | 1093 | unsigned long flags; |
1095 | 1094 | ||