~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/isdn/hisax/st5481_init.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#endif
47
47
int st5481_debug;
48
48
 
49
 
static LIST_HEAD(adapter_list);
50
 
 
51
49
/* ======================================================================
52
50
 * registration/deregistration with the USB layer
53
51
 */
86
84
                adapter->bcs[i].b_if.ifc.priv = &adapter->bcs[i];
87
85
                adapter->bcs[i].b_if.ifc.l2l1 = st5481_b_l2l1;
88
86
        }
89
 
        list_add(&adapter->list, &adapter_list);
90
87
 
91
88
        retval = st5481_setup_usb(adapter);
92
89
        if (retval < 0)
125
122
 err_usb:
126
123
        st5481_release_usb(adapter);
127
124
 err:
 
125
        kfree(adapter);
128
126
        return -EIO;
129
127
}
130
128
 
142
140
        if (!adapter)
143
141
                return;
144
142
        
145
 
        list_del(&adapter->list);
146
 
 
147
143
        st5481_stop(adapter);
148
144
        st5481_release_b(&adapter->bcs[1]);
149
145
        st5481_release_b(&adapter->bcs[0]);