Skip to content

Commit

Permalink
Drivers: isdn: remove __dev* attributes.
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitdata,
and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Jan 3, 2013
1 parent 150632b commit ed5a84c
Show file tree
Hide file tree
Showing 51 changed files with 217 additions and 296 deletions.
8 changes: 4 additions & 4 deletions drivers/isdn/hardware/avm/b1pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ static void b1pciv4_remove(struct pci_dev *pdev)

#endif /* CONFIG_ISDN_DRV_AVMB1_B1PCIV4 */

static int __devinit b1pci_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
static int b1pci_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
struct capicardparams param;
int retval;
Expand Down Expand Up @@ -344,7 +344,7 @@ static int __devinit b1pci_pci_probe(struct pci_dev *pdev,
return retval;
}

static void __devexit b1pci_pci_remove(struct pci_dev *pdev)
static void b1pci_pci_remove(struct pci_dev *pdev)
{
#ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
avmcard *card = pci_get_drvdata(pdev);
Expand All @@ -362,7 +362,7 @@ static struct pci_driver b1pci_pci_driver = {
.name = "b1pci",
.id_table = b1pci_pci_tbl,
.probe = b1pci_pci_probe,
.remove = __devexit_p(b1pci_pci_remove),
.remove = b1pci_pci_remove,
};

static struct capi_driver capi_driver_b1pci = {
Expand Down
3 changes: 1 addition & 2 deletions drivers/isdn/hardware/avm/c4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,7 @@ static int c4_add_card(struct capicardparams *p, struct pci_dev *dev,

/* ------------------------------------------------------------- */

static int __devinit c4_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
static int c4_probe(struct pci_dev *dev, const struct pci_device_id *ent)
{
int nr = ent->driver_data;
int retval = 0;
Expand Down
3 changes: 1 addition & 2 deletions drivers/isdn/hardware/avm/t1pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ static char *t1pci_procinfo(struct capi_ctr *ctrl)

/* ------------------------------------------------------------- */

static int __devinit t1pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
static int t1pci_probe(struct pci_dev *dev, const struct pci_device_id *ent)
{
struct capicardparams param;
int retval;
Expand Down
9 changes: 4 additions & 5 deletions drivers/isdn/hardware/eicon/divasmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ MODULE_DEVICE_TABLE(pci, divas_pci_tbl);

static int divas_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent);
static void __devexit divas_remove_one(struct pci_dev *pdev);
static void divas_remove_one(struct pci_dev *pdev);

static struct pci_driver diva_pci_driver = {
.name = "divas",
.probe = divas_init_one,
.remove = __devexit_p(divas_remove_one),
.remove = divas_remove_one,
.id_table = divas_pci_tbl,
};

Expand Down Expand Up @@ -688,8 +688,7 @@ static int __init divas_register_chrdev(void)
/* --------------------------------------------------------------------------
PCI driver section
-------------------------------------------------------------------------- */
static int __devinit divas_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent)
static int divas_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{
void *pdiva = NULL;
u8 pci_latency;
Expand Down Expand Up @@ -749,7 +748,7 @@ static int __devinit divas_init_one(struct pci_dev *pdev,
return (0);
}

static void __devexit divas_remove_one(struct pci_dev *pdev)
static void divas_remove_one(struct pci_dev *pdev)
{
void *pdiva = pci_get_drvdata(pdev);

Expand Down
10 changes: 5 additions & 5 deletions drivers/isdn/hardware/mISDN/avmfritz.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ release_card(struct fritzcard *card)
AVM_cnt--;
}

static int __devinit
static int
setup_instance(struct fritzcard *card)
{
int i, err;
Expand Down Expand Up @@ -1096,7 +1096,7 @@ setup_instance(struct fritzcard *card)
return err;
}

static int __devinit
static int
fritzpci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
int err = -ENOMEM;
Expand Down Expand Up @@ -1130,7 +1130,7 @@ fritzpci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return err;
}

static void __devexit
static void
fritz_remove_pci(struct pci_dev *pdev)
{
struct fritzcard *card = pci_get_drvdata(pdev);
Expand All @@ -1142,7 +1142,7 @@ fritz_remove_pci(struct pci_dev *pdev)
pr_info("%s: drvdata already removed\n", __func__);
}

static struct pci_device_id fcpci_ids[] __devinitdata = {
static struct pci_device_id fcpci_ids[] = {
{ PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_A1, PCI_ANY_ID, PCI_ANY_ID,
0, 0, (unsigned long) "Fritz!Card PCI"},
{ PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_A1_V2, PCI_ANY_ID, PCI_ANY_ID,
Expand All @@ -1154,7 +1154,7 @@ MODULE_DEVICE_TABLE(pci, fcpci_ids);
static struct pci_driver fcpci_driver = {
.name = "fcpci",
.probe = fritzpci_probe,
.remove = __devexit_p(fritz_remove_pci),
.remove = fritz_remove_pci,
.id_table = fcpci_ids,
};

Expand Down
6 changes: 3 additions & 3 deletions drivers/isdn/hardware/mISDN/hfcmulti.c
Original file line number Diff line number Diff line change
Expand Up @@ -5274,7 +5274,7 @@ hfcmulti_init(struct hm_map *m, struct pci_dev *pdev,
return ret_err;
}

static void __devexit hfc_remove_pci(struct pci_dev *pdev)
static void hfc_remove_pci(struct pci_dev *pdev)
{
struct hfc_multi *card = pci_get_drvdata(pdev);
u_long flags;
Expand Down Expand Up @@ -5351,7 +5351,7 @@ static const struct hm_map hfcm_map[] = {

#undef H
#define H(x) ((unsigned long)&hfcm_map[x])
static struct pci_device_id hfmultipci_ids[] __devinitdata = {
static struct pci_device_id hfmultipci_ids[] = {

/* Cards with HFC-4S Chip */
{ PCI_VENDOR_ID_CCD, PCI_DEVICE_ID_CCD_HFC4S, PCI_VENDOR_ID_CCD,
Expand Down Expand Up @@ -5472,7 +5472,7 @@ hfcmulti_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
static struct pci_driver hfcmultipci_driver = {
.name = "hfc_multi",
.probe = hfcmulti_probe,
.remove = __devexit_p(hfc_remove_pci),
.remove = hfc_remove_pci,
.id_table = hfmultipci_ids,
};

Expand Down
6 changes: 3 additions & 3 deletions drivers/isdn/hardware/mISDN/hfcpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,7 @@ static struct pci_device_id hfc_ids[] =
{},
};

static int __devinit
static int
hfc_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
int err = -ENOMEM;
Expand Down Expand Up @@ -2246,7 +2246,7 @@ hfc_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return err;
}

static void __devexit
static void
hfc_remove_pci(struct pci_dev *pdev)
{
struct hfc_pci *card = pci_get_drvdata(pdev);
Expand All @@ -2263,7 +2263,7 @@ hfc_remove_pci(struct pci_dev *pdev)
static struct pci_driver hfc_driver = {
.name = "hfcpci",
.probe = hfc_probe,
.remove = __devexit_p(hfc_remove_pci),
.remove = hfc_remove_pci,
.id_table = hfc_ids,
};

Expand Down
16 changes: 8 additions & 8 deletions drivers/isdn/hardware/mISDN/mISDNinfineon.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct inf_hw {
#define PCI_SUBVENDOR_SEDLBAUER_PCI 0x53
#define PCI_SUB_ID_SEDLBAUER 0x01

static struct pci_device_id infineon_ids[] __devinitdata = {
static struct pci_device_id infineon_ids[] = {
{ PCI_VDEVICE(EICON, PCI_DEVICE_ID_EICON_DIVA20), INF_DIVA20 },
{ PCI_VDEVICE(EICON, PCI_DEVICE_ID_EICON_DIVA20_U), INF_DIVA20U },
{ PCI_VDEVICE(EICON, PCI_DEVICE_ID_EICON_DIVA201), INF_DIVA201 },
Expand Down Expand Up @@ -603,7 +603,7 @@ inf_ctrl(struct inf_hw *hw, u32 cmd, u_long arg)
return ret;
}

static int __devinit
static int
init_irq(struct inf_hw *hw)
{
int ret, cnt = 3;
Expand Down Expand Up @@ -662,7 +662,7 @@ release_io(struct inf_hw *hw)
}
}

static int __devinit
static int
setup_io(struct inf_hw *hw)
{
int err = 0;
Expand Down Expand Up @@ -896,7 +896,7 @@ release_card(struct inf_hw *card) {
inf_cnt--;
}

static int __devinit
static int
setup_instance(struct inf_hw *card)
{
int err;
Expand Down Expand Up @@ -1060,7 +1060,7 @@ static const struct inf_cinfo inf_card_info[] = {
}
};

static const struct inf_cinfo * __devinit
static const struct inf_cinfo *
get_card_info(enum inf_types typ)
{
const struct inf_cinfo *ci = inf_card_info;
Expand All @@ -1073,7 +1073,7 @@ get_card_info(enum inf_types typ)
return NULL;
}

static int __devinit
static int
inf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
int err = -ENOMEM;
Expand Down Expand Up @@ -1135,7 +1135,7 @@ inf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return err;
}

static void __devexit
static void
inf_remove(struct pci_dev *pdev)
{
struct inf_hw *card = pci_get_drvdata(pdev);
Expand All @@ -1149,7 +1149,7 @@ inf_remove(struct pci_dev *pdev)
static struct pci_driver infineon_driver = {
.name = "ISDN Infineon pci",
.probe = inf_probe,
.remove = __devexit_p(inf_remove),
.remove = inf_remove,
.id_table = infineon_ids,
};

Expand Down
10 changes: 5 additions & 5 deletions drivers/isdn/hardware/mISDN/netjet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ nj_setup(struct tiger_hw *card)
}


static int __devinit
static int
setup_instance(struct tiger_hw *card)
{
int i, err;
Expand Down Expand Up @@ -1059,7 +1059,7 @@ setup_instance(struct tiger_hw *card)
return err;
}

static int __devinit
static int
nj_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
int err = -ENOMEM;
Expand Down Expand Up @@ -1124,7 +1124,7 @@ nj_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}


static void __devexit nj_remove(struct pci_dev *pdev)
static void nj_remove(struct pci_dev *pdev)
{
struct tiger_hw *card = pci_get_drvdata(pdev);

Expand All @@ -1137,7 +1137,7 @@ static void __devexit nj_remove(struct pci_dev *pdev)
/* We cannot select cards with PCI_SUB... IDs, since here are cards with
* SUB IDs set to PCI_ANY_ID, so we need to match all and reject
* known other cards which not work with this driver - see probe function */
static struct pci_device_id nj_pci_ids[] __devinitdata = {
static struct pci_device_id nj_pci_ids[] = {
{ PCI_VENDOR_ID_TIGERJET, PCI_DEVICE_ID_TIGERJET_300,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{ }
Expand All @@ -1147,7 +1147,7 @@ MODULE_DEVICE_TABLE(pci, nj_pci_ids);
static struct pci_driver nj_driver = {
.name = "netjet",
.probe = nj_probe,
.remove = __devexit_p(nj_remove),
.remove = nj_remove,
.id_table = nj_pci_ids,
};

Expand Down
14 changes: 7 additions & 7 deletions drivers/isdn/hardware/mISDN/speedfax.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ sfax_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)
return err;
}

static int __devinit
static int
init_card(struct sfax_hw *sf)
{
int ret, cnt = 3;
Expand Down Expand Up @@ -321,7 +321,7 @@ init_card(struct sfax_hw *sf)
}


static int __devinit
static int
setup_speedfax(struct sfax_hw *sf)
{
u_long flags;
Expand Down Expand Up @@ -371,7 +371,7 @@ release_card(struct sfax_hw *card) {
sfax_cnt--;
}

static int __devinit
static int
setup_instance(struct sfax_hw *card)
{
const struct firmware *firmware;
Expand Down Expand Up @@ -451,7 +451,7 @@ setup_instance(struct sfax_hw *card)
return err;
}

static int __devinit
static int
sfaxpci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
int err = -ENOMEM;
Expand Down Expand Up @@ -480,7 +480,7 @@ sfaxpci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return err;
}

static void __devexit
static void
sfax_remove_pci(struct pci_dev *pdev)
{
struct sfax_hw *card = pci_get_drvdata(pdev);
Expand All @@ -491,7 +491,7 @@ sfax_remove_pci(struct pci_dev *pdev)
pr_debug("%s: drvdata already removed\n", __func__);
}

static struct pci_device_id sfaxpci_ids[] __devinitdata = {
static struct pci_device_id sfaxpci_ids[] = {
{ PCI_VENDOR_ID_TIGERJET, PCI_DEVICE_ID_TIGERJET_100,
PCI_SUBVENDOR_SPEEDFAX_PYRAMID, PCI_SUB_ID_SEDLBAUER,
0, 0, (unsigned long) "Pyramid Speedfax + PCI"
Expand All @@ -507,7 +507,7 @@ MODULE_DEVICE_TABLE(pci, sfaxpci_ids);
static struct pci_driver sfaxpci_driver = {
.name = "speedfax+ pci",
.probe = sfaxpci_probe,
.remove = __devexit_p(sfax_remove_pci),
.remove = sfax_remove_pci,
.id_table = sfaxpci_ids,
};

Expand Down
6 changes: 3 additions & 3 deletions drivers/isdn/hardware/mISDN/w6692.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ setup_instance(struct w6692_hw *card)
return err;
}

static int __devinit
static int
w6692_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
int err = -ENOMEM;
Expand Down Expand Up @@ -1387,7 +1387,7 @@ w6692_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
return err;
}

static void __devexit
static void
w6692_remove_pci(struct pci_dev *pdev)
{
struct w6692_hw *card = pci_get_drvdata(pdev);
Expand All @@ -1414,7 +1414,7 @@ MODULE_DEVICE_TABLE(pci, w6692_ids);
static struct pci_driver w6692_driver = {
.name = "w6692",
.probe = w6692_probe,
.remove = __devexit_p(w6692_remove_pci),
.remove = w6692_remove_pci,
.id_table = w6692_ids,
};

Expand Down
3 changes: 1 addition & 2 deletions drivers/isdn/hisax/amd7930_fn.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,7 @@ void Amd7930_init(struct IsdnCardState *cs)
}
}

void __devinit
setup_Amd7930(struct IsdnCardState *cs)
void setup_Amd7930(struct IsdnCardState *cs)
{
INIT_WORK(&cs->tqueue, Amd7930_bh);
cs->dbusytimer.function = (void *) dbusy_timer_handler;
Expand Down
Loading

0 comments on commit ed5a84c

Please sign in to comment.