aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/6fire/comm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/6fire/comm.c')
-rw-r--r--sound/usb/6fire/comm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/usb/6fire/comm.c b/sound/usb/6fire/comm.c
index 6c3d531a250e..9e6e3ffd86bb 100644
--- a/sound/usb/6fire/comm.c
+++ b/sound/usb/6fire/comm.c
@@ -125,16 +125,17 @@ static int usb6fire_comm_write16(struct comm_runtime *rt, u8 request,
125 return usb6fire_comm_send_buffer(buffer, rt->chip->dev); 125 return usb6fire_comm_send_buffer(buffer, rt->chip->dev);
126} 126}
127 127
128int __devinit usb6fire_comm_init(struct sfire_chip *chip) 128int usb6fire_comm_init(struct sfire_chip *chip)
129{ 129{
130 struct comm_runtime *rt = kzalloc(sizeof(struct comm_runtime), 130 struct comm_runtime *rt = kzalloc(sizeof(struct comm_runtime),
131 GFP_KERNEL); 131 GFP_KERNEL);
132 struct urb *urb = &rt->receiver; 132 struct urb *urb;
133 int ret; 133 int ret;
134 134
135 if (!rt) 135 if (!rt)
136 return -ENOMEM; 136 return -ENOMEM;
137 137
138 urb = &rt->receiver;
138 rt->serial = 1; 139 rt->serial = 1;
139 rt->chip = chip; 140 rt->chip = chip;
140 usb_init_urb(urb); 141 usb_init_urb(urb);