Commit 941c0135 authored by Herbert Xu's avatar Herbert Xu Committed by Patrick Mochel

[PATCH] Fix usb interface change in hisax st5481_*

This makes the HISAX ST5481 driver build again with 2.6.0-test3 where
the usb_host_config structure has changed.
parent d2473081
......@@ -254,7 +254,7 @@ static int st5481_setup_b_out(struct st5481_bcs *bcs)
DBG(4,"");
altsetting = &(dev->config->interface[0].altsetting[3]);
altsetting = &(dev->config->interface[0]->altsetting[3]);
// Allocate URBs and buffers for the B channel out
endpoint = &altsetting->endpoint[EP_B1_OUT - 1 + bcs->channel * 2];
......
......@@ -658,7 +658,7 @@ static int __devinit st5481_setup_d_out(struct st5481_adapter *adapter)
DBG(2,"");
altsetting = &(dev->config->interface[0].altsetting[3]);
altsetting = &(dev->config->interface[0]->altsetting[3]);
// Allocate URBs and buffers for the D channel out
endpoint = &altsetting->endpoint[EP_D_OUT-1];
......
......@@ -258,7 +258,7 @@ int __devinit st5481_setup_usb(struct st5481_adapter *adapter)
}
altsetting = &(dev->config->interface[0].altsetting[3]);
altsetting = &(dev->config->interface[0]->altsetting[3]);
// Check if the config is sane
if ( altsetting->desc.bNumEndpoints != 7 ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment