aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2009-11-19 04:55:53 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-19 15:29:27 -0500
commit5452fee23eddb5ebb46f13aba50c8930c160e1da (patch)
tree276fc89f0d85b63f8292c918266666dc691f6b43 /drivers/isdn/gigaset
parent386e50cc7d82b3799ea6f53267f04f123ae05afe (diff)
drivers/isdn/gigaset: tasklet_init - Remove unnecessary leading & from second arg
Changed function pointer use from non-majority address-of style to majority short form without & via: grep -rPl "\btasklet_init\s*\([^,\)]+,\s*\&" drivers/isdn | while read file ; do \ perl -i -e 'local $/; while (<>) { s@(\btasklet_init\s*\([^,\)]+,\s*)\&@\1@g ; print ; }' $file ;\ done Compile tested allyesconfig x86 Signed-off-by: Joe Perches <joe@perches.com> drivers/isdn/gigaset/bas-gigaset.c | 4 ++-- drivers/isdn/gigaset/common.c | 2 +- drivers/isdn/gigaset/interface.c | 2 +- drivers/isdn/gigaset/ser-gigaset.c | 2 +- drivers/isdn/gigaset/usb-gigaset.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset')
-rw-r--r--drivers/isdn/gigaset/bas-gigaset.c4
-rw-r--r--drivers/isdn/gigaset/common.c2
-rw-r--r--drivers/isdn/gigaset/interface.c2
-rw-r--r--drivers/isdn/gigaset/ser-gigaset.c2
-rw-r--r--drivers/isdn/gigaset/usb-gigaset.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/drivers/isdn/gigaset/bas-gigaset.c b/drivers/isdn/gigaset/bas-gigaset.c
index 9fd19db045fb..95ebc5129895 100644
--- a/drivers/isdn/gigaset/bas-gigaset.c
+++ b/drivers/isdn/gigaset/bas-gigaset.c
@@ -2117,7 +2117,7 @@ static int gigaset_initbcshw(struct bc_state *bcs)
2117 return 0; 2117 return 0;
2118 } 2118 }
2119 tasklet_init(&ubc->sent_tasklet, 2119 tasklet_init(&ubc->sent_tasklet,
2120 &write_iso_tasklet, (unsigned long) bcs); 2120 write_iso_tasklet, (unsigned long) bcs);
2121 2121
2122 spin_lock_init(&ubc->isoinlock); 2122 spin_lock_init(&ubc->isoinlock);
2123 for (i = 0; i < BAS_INURBS; ++i) 2123 for (i = 0; i < BAS_INURBS; ++i)
@@ -2138,7 +2138,7 @@ static int gigaset_initbcshw(struct bc_state *bcs)
2138 ubc->shared0s = 0; 2138 ubc->shared0s = 0;
2139 ubc->stolen0s = 0; 2139 ubc->stolen0s = 0;
2140 tasklet_init(&ubc->rcvd_tasklet, 2140 tasklet_init(&ubc->rcvd_tasklet,
2141 &read_iso_tasklet, (unsigned long) bcs); 2141 read_iso_tasklet, (unsigned long) bcs);
2142 return 1; 2142 return 1;
2143} 2143}
2144 2144
diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c
index c438cfcb7c6d..82ed1cd14ff5 100644
--- a/drivers/isdn/gigaset/common.c
+++ b/drivers/isdn/gigaset/common.c
@@ -727,7 +727,7 @@ struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels,
727 cs->ev_tail = 0; 727 cs->ev_tail = 0;
728 cs->ev_head = 0; 728 cs->ev_head = 0;
729 729
730 tasklet_init(&cs->event_tasklet, &gigaset_handle_event, 730 tasklet_init(&cs->event_tasklet, gigaset_handle_event,
731 (unsigned long) cs); 731 (unsigned long) cs);
732 cs->commands_pending = 0; 732 cs->commands_pending = 0;
733 cs->cur_at_seq = 0; 733 cs->cur_at_seq = 0;
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c
index 577809c03aed..d2260b0055fc 100644
--- a/drivers/isdn/gigaset/interface.c
+++ b/drivers/isdn/gigaset/interface.c
@@ -584,7 +584,7 @@ void gigaset_if_init(struct cardstate *cs)
584 if (!drv->have_tty) 584 if (!drv->have_tty)
585 return; 585 return;
586 586
587 tasklet_init(&cs->if_wake_tasklet, &if_wake, (unsigned long) cs); 587 tasklet_init(&cs->if_wake_tasklet, if_wake, (unsigned long) cs);
588 588
589 mutex_lock(&cs->mutex); 589 mutex_lock(&cs->mutex);
590 cs->tty_dev = tty_register_device(drv->tty, cs->minor_index, NULL); 590 cs->tty_dev = tty_register_device(drv->tty, cs->minor_index, NULL);
diff --git a/drivers/isdn/gigaset/ser-gigaset.c b/drivers/isdn/gigaset/ser-gigaset.c
index ac3409ea5d99..168d585d64d8 100644
--- a/drivers/isdn/gigaset/ser-gigaset.c
+++ b/drivers/isdn/gigaset/ser-gigaset.c
@@ -434,7 +434,7 @@ static int gigaset_initcshw(struct cardstate *cs)
434 dev_set_drvdata(&cs->hw.ser->dev.dev, cs); 434 dev_set_drvdata(&cs->hw.ser->dev.dev, cs);
435 435
436 tasklet_init(&cs->write_tasklet, 436 tasklet_init(&cs->write_tasklet,
437 &gigaset_modem_fill, (unsigned long) cs); 437 gigaset_modem_fill, (unsigned long) cs);
438 return 1; 438 return 1;
439} 439}
440 440
diff --git a/drivers/isdn/gigaset/usb-gigaset.c b/drivers/isdn/gigaset/usb-gigaset.c
index f56b2a83793e..3ab1daeb276b 100644
--- a/drivers/isdn/gigaset/usb-gigaset.c
+++ b/drivers/isdn/gigaset/usb-gigaset.c
@@ -614,7 +614,7 @@ static int gigaset_initcshw(struct cardstate *cs)
614 ucs->bulk_out_urb = NULL; 614 ucs->bulk_out_urb = NULL;
615 ucs->read_urb = NULL; 615 ucs->read_urb = NULL;
616 tasklet_init(&cs->write_tasklet, 616 tasklet_init(&cs->write_tasklet,
617 &gigaset_modem_fill, (unsigned long) cs); 617 gigaset_modem_fill, (unsigned long) cs);
618 618
619 return 1; 619 return 1;
620} 620}