mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts: drivers/infiniband/core/iwcm.c drivers/net/chelsio/cxgb2.c drivers/net/wireless/bcm43xx/bcm43xx_main.c drivers/net/wireless/prism54/islpci_eth.c drivers/usb/core/hub.h drivers/usb/input/hid-core.c net/core/netpoll.c Fix up merge failures with Linus's head and fix new compilation failures. Signed-Off-By: David Howells <[email protected]>
This commit is contained in:
commit
4c1ac1b491
1476 changed files with 67631 additions and 41020 deletions
|
|
@ -702,7 +702,7 @@ struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels,
|
|||
cs->open_count = 0;
|
||||
cs->dev = NULL;
|
||||
cs->tty = NULL;
|
||||
cs->class = NULL;
|
||||
cs->tty_dev = NULL;
|
||||
cs->cidmode = cidmode != 0;
|
||||
|
||||
//if(onechannel) { //FIXME
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ struct cardstate {
|
|||
struct gigaset_driver *driver;
|
||||
unsigned minor_index;
|
||||
struct device *dev;
|
||||
struct class_device *class;
|
||||
struct device *tty_dev;
|
||||
|
||||
const struct gigaset_ops *ops;
|
||||
|
||||
|
|
|
|||
|
|
@ -625,13 +625,13 @@ void gigaset_if_init(struct cardstate *cs)
|
|||
return;
|
||||
|
||||
tasklet_init(&cs->if_wake_tasklet, &if_wake, (unsigned long) cs);
|
||||
cs->class = tty_register_device(drv->tty, cs->minor_index, NULL);
|
||||
cs->tty_dev = tty_register_device(drv->tty, cs->minor_index, NULL);
|
||||
|
||||
if (!IS_ERR(cs->class))
|
||||
class_set_devdata(cs->class, cs);
|
||||
if (!IS_ERR(cs->tty_dev))
|
||||
dev_set_drvdata(cs->tty_dev, cs);
|
||||
else {
|
||||
warn("could not register device to the tty subsystem");
|
||||
cs->class = NULL;
|
||||
cs->tty_dev = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -645,7 +645,7 @@ void gigaset_if_free(struct cardstate *cs)
|
|||
|
||||
tasklet_disable(&cs->if_wake_tasklet);
|
||||
tasklet_kill(&cs->if_wake_tasklet);
|
||||
cs->class = NULL;
|
||||
cs->tty_dev = NULL;
|
||||
tty_unregister_device(drv->tty, cs->minor_index);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,11 +16,12 @@
|
|||
#include "gigaset.h"
|
||||
#include <linux/ctype.h>
|
||||
|
||||
static ssize_t show_cidmode(struct class_device *class, char *buf)
|
||||
static ssize_t show_cidmode(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
int ret;
|
||||
unsigned long flags;
|
||||
struct cardstate *cs = class_get_devdata(class);
|
||||
struct cardstate *cs = dev_get_drvdata(dev);
|
||||
|
||||
spin_lock_irqsave(&cs->lock, flags);
|
||||
ret = sprintf(buf, "%u\n", cs->cidmode);
|
||||
|
|
@ -29,10 +30,10 @@ static ssize_t show_cidmode(struct class_device *class, char *buf)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static ssize_t set_cidmode(struct class_device *class,
|
||||
static ssize_t set_cidmode(struct device *dev, struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
struct cardstate *cs = class_get_devdata(class);
|
||||
struct cardstate *cs = dev_get_drvdata(dev);
|
||||
long int value;
|
||||
char *end;
|
||||
|
||||
|
|
@ -64,25 +65,25 @@ static ssize_t set_cidmode(struct class_device *class,
|
|||
return count;
|
||||
}
|
||||
|
||||
static CLASS_DEVICE_ATTR(cidmode, S_IRUGO|S_IWUSR, show_cidmode, set_cidmode);
|
||||
static DEVICE_ATTR(cidmode, S_IRUGO|S_IWUSR, show_cidmode, set_cidmode);
|
||||
|
||||
/* free sysfs for device */
|
||||
void gigaset_free_dev_sysfs(struct cardstate *cs)
|
||||
{
|
||||
if (!cs->class)
|
||||
if (!cs->tty_dev)
|
||||
return;
|
||||
|
||||
gig_dbg(DEBUG_INIT, "removing sysfs entries");
|
||||
class_device_remove_file(cs->class, &class_device_attr_cidmode);
|
||||
device_remove_file(cs->tty_dev, &dev_attr_cidmode);
|
||||
}
|
||||
|
||||
/* initialize sysfs for device */
|
||||
void gigaset_init_dev_sysfs(struct cardstate *cs)
|
||||
{
|
||||
if (!cs->class)
|
||||
if (!cs->tty_dev)
|
||||
return;
|
||||
|
||||
gig_dbg(DEBUG_INIT, "setting up sysfs");
|
||||
if (class_device_create_file(cs->class, &class_device_attr_cidmode))
|
||||
if (device_create_file(cs->tty_dev, &dev_attr_cidmode))
|
||||
dev_err(cs->dev, "could not create sysfs attribute\n");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -815,14 +815,11 @@ static int gigaset_probe(struct usb_interface *interface,
|
|||
return 0;
|
||||
|
||||
error:
|
||||
if (ucs->read_urb)
|
||||
usb_kill_urb(ucs->read_urb);
|
||||
usb_kill_urb(ucs->read_urb);
|
||||
kfree(ucs->bulk_out_buffer);
|
||||
if (ucs->bulk_out_urb != NULL)
|
||||
usb_free_urb(ucs->bulk_out_urb);
|
||||
usb_free_urb(ucs->bulk_out_urb);
|
||||
kfree(cs->inbuf[0].rcvbuf);
|
||||
if (ucs->read_urb != NULL)
|
||||
usb_free_urb(ucs->read_urb);
|
||||
usb_free_urb(ucs->read_urb);
|
||||
usb_set_intfdata(interface, NULL);
|
||||
ucs->read_urb = ucs->bulk_out_urb = NULL;
|
||||
cs->inbuf[0].rcvbuf = ucs->bulk_out_buffer = NULL;
|
||||
|
|
@ -850,11 +847,9 @@ static void gigaset_disconnect(struct usb_interface *interface)
|
|||
usb_kill_urb(ucs->bulk_out_urb); /* FIXME: only if active? */
|
||||
|
||||
kfree(ucs->bulk_out_buffer);
|
||||
if (ucs->bulk_out_urb != NULL)
|
||||
usb_free_urb(ucs->bulk_out_urb);
|
||||
usb_free_urb(ucs->bulk_out_urb);
|
||||
kfree(cs->inbuf[0].rcvbuf);
|
||||
if (ucs->read_urb != NULL)
|
||||
usb_free_urb(ucs->read_urb);
|
||||
usb_free_urb(ucs->read_urb);
|
||||
ucs->read_urb = ucs->bulk_out_urb = NULL;
|
||||
cs->inbuf[0].rcvbuf = ucs->bulk_out_buffer = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -464,7 +464,7 @@ int diva_4bri_init_card(diva_os_xdi_adapter_t * a)
|
|||
|
||||
/*
|
||||
** Cleanup function will be called for master adapter only
|
||||
** this is garanteed by design: cleanup callback is set
|
||||
** this is guaranteed by design: cleanup callback is set
|
||||
** by master adapter only
|
||||
*/
|
||||
static int diva_4bri_cleanup_adapter(diva_os_xdi_adapter_t * a)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
/*
|
||||
* include Genero generated HFC-4S/8S header file hfc48scu.h
|
||||
* for comlete register description. This will define _HFC48SCU_H_
|
||||
* for complete register description. This will define _HFC48SCU_H_
|
||||
* to prevent redefinitions
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1442,7 +1442,7 @@ l2_tei_remove(struct FsmInst *fi, int event, void *arg)
|
|||
}
|
||||
|
||||
static void
|
||||
l2_st14_persistant_da(struct FsmInst *fi, int event, void *arg)
|
||||
l2_st14_persistent_da(struct FsmInst *fi, int event, void *arg)
|
||||
{
|
||||
struct PStack *st = fi->userdata;
|
||||
|
||||
|
|
@ -1453,7 +1453,7 @@ l2_st14_persistant_da(struct FsmInst *fi, int event, void *arg)
|
|||
}
|
||||
|
||||
static void
|
||||
l2_st5_persistant_da(struct FsmInst *fi, int event, void *arg)
|
||||
l2_st5_persistent_da(struct FsmInst *fi, int event, void *arg)
|
||||
{
|
||||
struct PStack *st = fi->userdata;
|
||||
|
||||
|
|
@ -1466,7 +1466,7 @@ l2_st5_persistant_da(struct FsmInst *fi, int event, void *arg)
|
|||
}
|
||||
|
||||
static void
|
||||
l2_st6_persistant_da(struct FsmInst *fi, int event, void *arg)
|
||||
l2_st6_persistent_da(struct FsmInst *fi, int event, void *arg)
|
||||
{
|
||||
struct PStack *st = fi->userdata;
|
||||
|
||||
|
|
@ -1477,7 +1477,7 @@ l2_st6_persistant_da(struct FsmInst *fi, int event, void *arg)
|
|||
}
|
||||
|
||||
static void
|
||||
l2_persistant_da(struct FsmInst *fi, int event, void *arg)
|
||||
l2_persistent_da(struct FsmInst *fi, int event, void *arg)
|
||||
{
|
||||
struct PStack *st = fi->userdata;
|
||||
|
||||
|
|
@ -1612,14 +1612,14 @@ static struct FsmNode L2FnList[] __initdata =
|
|||
{ST_L2_6, EV_L2_FRAME_ERROR, l2_frame_error},
|
||||
{ST_L2_7, EV_L2_FRAME_ERROR, l2_frame_error_reest},
|
||||
{ST_L2_8, EV_L2_FRAME_ERROR, l2_frame_error_reest},
|
||||
{ST_L2_1, EV_L1_DEACTIVATE, l2_st14_persistant_da},
|
||||
{ST_L2_1, EV_L1_DEACTIVATE, l2_st14_persistent_da},
|
||||
{ST_L2_2, EV_L1_DEACTIVATE, l2_st24_tei_remove},
|
||||
{ST_L2_3, EV_L1_DEACTIVATE, l2_st3_tei_remove},
|
||||
{ST_L2_4, EV_L1_DEACTIVATE, l2_st14_persistant_da},
|
||||
{ST_L2_5, EV_L1_DEACTIVATE, l2_st5_persistant_da},
|
||||
{ST_L2_6, EV_L1_DEACTIVATE, l2_st6_persistant_da},
|
||||
{ST_L2_7, EV_L1_DEACTIVATE, l2_persistant_da},
|
||||
{ST_L2_8, EV_L1_DEACTIVATE, l2_persistant_da},
|
||||
{ST_L2_4, EV_L1_DEACTIVATE, l2_st14_persistent_da},
|
||||
{ST_L2_5, EV_L1_DEACTIVATE, l2_st5_persistent_da},
|
||||
{ST_L2_6, EV_L1_DEACTIVATE, l2_st6_persistent_da},
|
||||
{ST_L2_7, EV_L1_DEACTIVATE, l2_persistent_da},
|
||||
{ST_L2_8, EV_L1_DEACTIVATE, l2_persistent_da},
|
||||
};
|
||||
|
||||
#define L2_FN_COUNT (sizeof(L2FnList)/sizeof(struct FsmNode))
|
||||
|
|
|
|||
Loading…
Reference in a new issue