aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/line6/podhd.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-25 12:22:58 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-28 01:21:59 -0500
commitf66fd990c5db177d6b9f0eae301ca6b15882eb2e (patch)
treee583afc51d0962a9f803adfe40e77ff6adefc690 /sound/usb/line6/podhd.c
parent62a109d9e2ce948ee75222bbb92a97669f683875 (diff)
ALSA: line6: Drop interface argument from private_init and disconnect callbacks
The interface argument is used just for retrieving the assigned device, which can be already found in line6->ifcdev. Drop them from the callbacks. Also, pass the usb id to private_init so that the driver can deal with it there. This is a preliminary work for the further cleanup to move the whole allocation into driver.c. Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/podhd.c')
-rw-r--r--sound/usb/line6/podhd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
index 59abbd92624e..21d7edcfa272 100644
--- a/sound/usb/line6/podhd.c
+++ b/sound/usb/line6/podhd.c
@@ -87,8 +87,8 @@ static struct line6_pcm_properties podhd_pcm_properties = {
87/* 87/*
88 Try to init POD HD device. 88 Try to init POD HD device.
89*/ 89*/
90static int podhd_init(struct usb_interface *interface, 90static int podhd_init(struct usb_line6 *line6,
91 struct usb_line6 *line6) 91 const struct usb_device_id *id)
92{ 92{
93 int err; 93 int err;
94 94
@@ -182,7 +182,7 @@ static int podhd_probe(struct usb_interface *interface,
182 podhd = kzalloc(sizeof(*podhd), GFP_KERNEL); 182 podhd = kzalloc(sizeof(*podhd), GFP_KERNEL);
183 if (!podhd) 183 if (!podhd)
184 return -ENODEV; 184 return -ENODEV;
185 return line6_probe(interface, &podhd->line6, 185 return line6_probe(interface, id, &podhd->line6,
186 &podhd_properties_table[id->driver_info], 186 &podhd_properties_table[id->driver_info],
187 podhd_init); 187 podhd_init);
188} 188}