diff options
author | Duncan Sands <baldrick@free.fr> | 2006-01-17 05:16:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-31 20:23:39 -0500 |
commit | 35644b0cce0ab8735944dcbfceb19e9e65da9a3d (patch) | |
tree | caa13c8519c7417fa0adf173cec98b994745c79f /drivers/usb/atm/cxacru.c | |
parent | 0ec3c7e856319b600311750d784262caa8ed94b9 (diff) |
[PATCH] USBATM: add flags field
Have minidrivers and the core signal special requirements
using a flags field in struct usbatm_data. For the moment
this is only used to replace the need_heavy_init bind
parameter, but there'll be new flags in later patches.
Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/atm/cxacru.c')
-rw-r--r-- | drivers/usb/atm/cxacru.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index 139be1207d22..fc130b2171aa 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c | |||
@@ -666,8 +666,7 @@ static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, | |||
666 | } | 666 | } |
667 | 667 | ||
668 | static int cxacru_bind(struct usbatm_data *usbatm_instance, | 668 | static int cxacru_bind(struct usbatm_data *usbatm_instance, |
669 | struct usb_interface *intf, const struct usb_device_id *id, | 669 | struct usb_interface *intf, const struct usb_device_id *id) |
670 | int *need_heavy_init) | ||
671 | { | 670 | { |
672 | struct cxacru_data *instance; | 671 | struct cxacru_data *instance; |
673 | struct usb_device *usb_dev = interface_to_usbdev(intf); | 672 | struct usb_device *usb_dev = interface_to_usbdev(intf); |
@@ -726,7 +725,7 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance, | |||
726 | 725 | ||
727 | usbatm_instance->driver_data = instance; | 726 | usbatm_instance->driver_data = instance; |
728 | 727 | ||
729 | *need_heavy_init = cxacru_card_status(instance); | 728 | usbatm_instance->flags = (cxacru_card_status(instance) ? 0 : UDSL_SKIP_HEAVY_INIT); |
730 | 729 | ||
731 | return 0; | 730 | return 0; |
732 | 731 | ||