Skip to content

Commit

Permalink
MIPS: drivers: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Jan 3, 2013
1 parent cad5cef commit 28eb0e4
Show file tree
Hide file tree
Showing 23 changed files with 61 additions and 65 deletions.
2 changes: 1 addition & 1 deletion arch/mips/cavium-octeon/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void octeon_serial_out(struct uart_port *up, int offset, int value)
cvmx_write_csr((uint64_t)(up->membase + (offset << 3)), (u8)value);
}

static int __devinit octeon_serial_probe(struct platform_device *pdev)
static int octeon_serial_probe(struct platform_device *pdev)
{
int irq, res;
struct resource *res_mem;
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
extern char * (*pcibios_plat_setup)(char *str);

/* this function parses memory ranges from a device node */
extern void __devinit pci_load_of_ranges(struct pci_controller *hose,
struct device_node *node);
extern void pci_load_of_ranges(struct pci_controller *hose,
struct device_node *node);

#endif /* _ASM_PCI_H */
2 changes: 1 addition & 1 deletion arch/mips/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
}

/* preload SMP state for boot cpu */
void __devinit smp_prepare_boot_cpu(void)
void smp_prepare_boot_cpu(void)
{
set_cpu_possible(0, true);
set_cpu_online(0, true);
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/lantiq/xway/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ ltq_dma_init_port(int p)
}
EXPORT_SYMBOL_GPL(ltq_dma_init_port);

static int __devinit
static int
ltq_dma_init(struct platform_device *pdev)
{
struct clk *clk;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/lantiq/xway/gptu.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static inline void clkdev_add_gptu(struct device *dev, const char *con,
clkdev_add(&clk->cl);
}

static int __devinit gptu_probe(struct platform_device *pdev)
static int gptu_probe(struct platform_device *pdev)
{
struct clk *clk;
struct resource *res;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/lantiq/xway/xrx200_phy_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static dma_addr_t xway_gphy_load(struct platform_device *pdev)
return dev_addr;
}

static int __devinit xway_phy_fw_probe(struct platform_device *pdev)
static int xway_phy_fw_probe(struct platform_device *pdev)
{
dma_addr_t fw_addr;
struct property *pp;
Expand Down
6 changes: 3 additions & 3 deletions arch/mips/mti-sead3/sead3-i2c-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static void sead3_i2c_platform_setup(struct pic32_i2c_platform_data *priv)
priv->base + PIC32_I2CxSTATCLR);
}

static int __devinit sead3_i2c_platform_probe(struct platform_device *pdev)
static int sead3_i2c_platform_probe(struct platform_device *pdev)
{
struct pic32_i2c_platform_data *priv;
struct resource *r;
Expand Down Expand Up @@ -345,7 +345,7 @@ static int __devinit sead3_i2c_platform_probe(struct platform_device *pdev)
return ret;
}

static int __devexit sead3_i2c_platform_remove(struct platform_device *pdev)
static int sead3_i2c_platform_remove(struct platform_device *pdev)
{
struct pic32_i2c_platform_data *priv = platform_get_drvdata(pdev);

Expand Down Expand Up @@ -383,7 +383,7 @@ static struct platform_driver sead3_i2c_platform_driver = {
.owner = THIS_MODULE,
},
.probe = sead3_i2c_platform_probe,
.remove = __devexit_p(sead3_i2c_platform_remove),
.remove = sead3_i2c_platform_remove,
.suspend = sead3_i2c_platform_suspend,
.resume = sead3_i2c_platform_resume,
};
Expand Down
8 changes: 3 additions & 5 deletions arch/mips/mti-sead3/sead3-pic32-i2c-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ static void i2c_platform_disable(struct i2c_platform_data *priv)
pr_debug("i2c_platform_disable\n");
}

static int __devinit
i2c_platform_probe(struct platform_device *pdev)
static int i2c_platform_probe(struct platform_device *pdev)
{
struct i2c_platform_data *priv;
struct resource *r;
Expand Down Expand Up @@ -362,8 +361,7 @@ i2c_platform_probe(struct platform_device *pdev)
return ret;
}

static int __devexit
i2c_platform_remove(struct platform_device *pdev)
static int i2c_platform_remove(struct platform_device *pdev)
{
struct i2c_platform_data *priv = platform_get_drvdata(pdev);

Expand Down Expand Up @@ -408,7 +406,7 @@ static struct platform_driver i2c_platform_driver = {
.owner = THIS_MODULE,
},
.probe = i2c_platform_probe,
.remove = __devexit_p(i2c_platform_remove),
.remove = i2c_platform_remove,
.suspend = i2c_platform_suspend,
.resume = i2c_platform_resume,
};
Expand Down
8 changes: 4 additions & 4 deletions arch/mips/pci/fixup-cobalt.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#define VIA_COBALT_BRD_ID_REG 0x94
#define VIA_COBALT_BRD_REG_to_ID(reg) ((unsigned char)(reg) >> 4)

static void __devinit qube_raq_galileo_early_fixup(struct pci_dev *dev)
static void qube_raq_galileo_early_fixup(struct pci_dev *dev)
{
if (dev->devfn == PCI_DEVFN(0, 0) &&
(dev->class >> 8) == PCI_CLASS_MEMORY_OTHER) {
Expand All @@ -51,7 +51,7 @@ static void __devinit qube_raq_galileo_early_fixup(struct pci_dev *dev)
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_MARVELL, PCI_DEVICE_ID_MARVELL_GT64111,
qube_raq_galileo_early_fixup);

static void __devinit qube_raq_via_bmIDE_fixup(struct pci_dev *dev)
static void qube_raq_via_bmIDE_fixup(struct pci_dev *dev)
{
unsigned short cfgword;
unsigned char lt;
Expand All @@ -74,7 +74,7 @@ static void __devinit qube_raq_via_bmIDE_fixup(struct pci_dev *dev)
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1,
qube_raq_via_bmIDE_fixup);

static void __devinit qube_raq_galileo_fixup(struct pci_dev *dev)
static void qube_raq_galileo_fixup(struct pci_dev *dev)
{
if (dev->devfn != PCI_DEVFN(0, 0))
return;
Expand Down Expand Up @@ -129,7 +129,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL, PCI_DEVICE_ID_MARVELL_GT64111,

int cobalt_board_id;

static void __devinit qube_raq_via_board_id_fixup(struct pci_dev *dev)
static void qube_raq_via_board_id_fixup(struct pci_dev *dev)
{
u8 id;
int retval;
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/pci/fixup-emma2rh.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static unsigned char irq_map[][5] __initdata = {
MARKEINS_PCI_IRQ_INTA, MARKEINS_PCI_IRQ_INTB,},
};

static void __devinit nec_usb_controller_fixup(struct pci_dev *dev)
static void nec_usb_controller_fixup(struct pci_dev *dev)
{
if (PCI_SLOT(dev->devfn) == EMMA2RH_USB_SLOT)
/* on board USB controller configuration */
Expand All @@ -67,7 +67,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_USB,
* if it is the host bridge by marking it as such. These resources are of
* no consequence to the PCI layer (they are handled elsewhere).
*/
static void __devinit emma2rh_pci_host_fixup(struct pci_dev *dev)
static void emma2rh_pci_host_fixup(struct pci_dev *dev)
{
int i;

Expand Down
12 changes: 6 additions & 6 deletions arch/mips/pci/fixup-fuloong2e.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
return 0;
}

static void __devinit loongson2e_nec_fixup(struct pci_dev *pdev)
static void loongson2e_nec_fixup(struct pci_dev *pdev)
{
unsigned int val;

Expand All @@ -60,7 +60,7 @@ static void __devinit loongson2e_nec_fixup(struct pci_dev *pdev)
pci_write_config_dword(pdev, 0xe4, 1 << 5);
}

static void __devinit loongson2e_686b_func0_fixup(struct pci_dev *pdev)
static void loongson2e_686b_func0_fixup(struct pci_dev *pdev)
{
unsigned char c;

Expand Down Expand Up @@ -135,7 +135,7 @@ static void __devinit loongson2e_686b_func0_fixup(struct pci_dev *pdev)
printk(KERN_INFO"via686b fix: ISA bridge done\n");
}

static void __devinit loongson2e_686b_func1_fixup(struct pci_dev *pdev)
static void loongson2e_686b_func1_fixup(struct pci_dev *pdev)
{
printk(KERN_INFO"via686b fix: IDE\n");

Expand Down Expand Up @@ -168,19 +168,19 @@ static void __devinit loongson2e_686b_func1_fixup(struct pci_dev *pdev)
printk(KERN_INFO"via686b fix: IDE done\n");
}

static void __devinit loongson2e_686b_func2_fixup(struct pci_dev *pdev)
static void loongson2e_686b_func2_fixup(struct pci_dev *pdev)
{
/* irq routing */
pci_write_config_byte(pdev, PCI_INTERRUPT_LINE, 10);
}

static void __devinit loongson2e_686b_func3_fixup(struct pci_dev *pdev)
static void loongson2e_686b_func3_fixup(struct pci_dev *pdev)
{
/* irq routing */
pci_write_config_byte(pdev, PCI_INTERRUPT_LINE, 11);
}

static void __devinit loongson2e_686b_func5_fixup(struct pci_dev *pdev)
static void loongson2e_686b_func5_fixup(struct pci_dev *pdev)
{
unsigned int val;
unsigned char c;
Expand Down
12 changes: 6 additions & 6 deletions arch/mips/pci/fixup-lemote2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,36 +96,36 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
}

/* CS5536 SPEC. fixup */
static void __devinit loongson_cs5536_isa_fixup(struct pci_dev *pdev)
static void loongson_cs5536_isa_fixup(struct pci_dev *pdev)
{
/* the uart1 and uart2 interrupt in PIC is enabled as default */
pci_write_config_dword(pdev, PCI_UART1_INT_REG, 1);
pci_write_config_dword(pdev, PCI_UART2_INT_REG, 1);
}

static void __devinit loongson_cs5536_ide_fixup(struct pci_dev *pdev)
static void loongson_cs5536_ide_fixup(struct pci_dev *pdev)
{
/* setting the mutex pin as IDE function */
pci_write_config_dword(pdev, PCI_IDE_CFG_REG,
CS5536_IDE_FLASH_SIGNATURE);
}

static void __devinit loongson_cs5536_acc_fixup(struct pci_dev *pdev)
static void loongson_cs5536_acc_fixup(struct pci_dev *pdev)
{
/* enable the AUDIO interrupt in PIC */
pci_write_config_dword(pdev, PCI_ACC_INT_REG, 1);

pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0xc0);
}

static void __devinit loongson_cs5536_ohci_fixup(struct pci_dev *pdev)
static void loongson_cs5536_ohci_fixup(struct pci_dev *pdev)
{
/* enable the OHCI interrupt in PIC */
/* THE OHCI, EHCI, UDC, OTG are shared with interrupt in PIC */
pci_write_config_dword(pdev, PCI_OHCI_INT_REG, 1);
}

static void __devinit loongson_cs5536_ehci_fixup(struct pci_dev *pdev)
static void loongson_cs5536_ehci_fixup(struct pci_dev *pdev)
{
u32 hi, lo;

Expand All @@ -137,7 +137,7 @@ static void __devinit loongson_cs5536_ehci_fixup(struct pci_dev *pdev)
pci_write_config_dword(pdev, PCI_EHCI_FLADJ_REG, 0x2000);
}

static void __devinit loongson_nec_fixup(struct pci_dev *pdev)
static void loongson_nec_fixup(struct pci_dev *pdev)
{
unsigned int val;

Expand Down
10 changes: 5 additions & 5 deletions arch/mips/pci/fixup-malta.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define PCID 4

/* This table is filled in by interrogating the PIIX4 chip */
static char pci_irq[5] __devinitdata = {
static char pci_irq[5] = {
};

static char irq_tab[][5] __initdata = {
Expand Down Expand Up @@ -50,10 +50,10 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
return 0;
}

static void __devinit malta_piix_func0_fixup(struct pci_dev *pdev)
static void malta_piix_func0_fixup(struct pci_dev *pdev)
{
unsigned char reg_val;
static int piixirqmap[16] __devinitdata = { /* PIIX PIRQC[A:D] irq mappings */
static int piixirqmap[16] = { /* PIIX PIRQC[A:D] irq mappings */
0, 0, 0, 3,
4, 5, 6, 7,
0, 9, 10, 11,
Expand Down Expand Up @@ -84,7 +84,7 @@ static void __devinit malta_piix_func0_fixup(struct pci_dev *pdev)
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_0,
malta_piix_func0_fixup);

static void __devinit malta_piix_func1_fixup(struct pci_dev *pdev)
static void malta_piix_func1_fixup(struct pci_dev *pdev)
{
unsigned char reg_val;

Expand All @@ -104,7 +104,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB,
malta_piix_func1_fixup);

/* Enable PCI 2.1 compatibility in PIIX4 */
static void __devinit quirk_dlcsetup(struct pci_dev *dev)
static void quirk_dlcsetup(struct pci_dev *dev)
{
u8 odlc, ndlc;

Expand Down
6 changes: 3 additions & 3 deletions arch/mips/pci/fixup-rc32434.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
#include <asm/mach-rc32434/rc32434.h>
#include <asm/mach-rc32434/irq.h>

static int __devinitdata irq_map[2][12] = {
static int irq_map[2][12] = {
{0, 0, 2, 3, 2, 3, 0, 0, 0, 0, 0, 1},
{0, 0, 1, 3, 0, 2, 1, 3, 0, 2, 1, 3}
};

int __devinit pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
int irq = 0;

Expand All @@ -47,7 +47,7 @@ int __devinit pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
return irq + GROUP4_IRQ_BASE + 4;
}

static void __devinit rc32434_pci_early_fixup(struct pci_dev *dev)
static void rc32434_pci_early_fixup(struct pci_dev *dev)
{
if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) {
/* disable prefetched memory range */
Expand Down
6 changes: 3 additions & 3 deletions arch/mips/pci/fixup-sb1250.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Set the BCM1250, etc. PCI host bridge's TRDY timeout
* to the finite max.
*/
static void __devinit quirk_sb1250_pci(struct pci_dev *dev)
static void quirk_sb1250_pci(struct pci_dev *dev)
{
pci_write_config_byte(dev, 0x40, 0xff);
}
Expand All @@ -25,7 +25,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SIBYTE, PCI_DEVICE_ID_BCM1250_PCI,
/*
* The BCM1250, etc. PCI/HT bridge reports as a host bridge.
*/
static void __devinit quirk_sb1250_ht(struct pci_dev *dev)
static void quirk_sb1250_ht(struct pci_dev *dev)
{
dev->class = PCI_CLASS_BRIDGE_PCI << 8;
}
Expand All @@ -35,7 +35,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SIBYTE, PCI_DEVICE_ID_BCM1250_HT,
/*
* Set the SP1011 HT/PCI bridge's TRDY timeout to the finite max.
*/
static void __devinit quirk_sp1011(struct pci_dev *dev)
static void quirk_sp1011(struct pci_dev *dev)
{
pci_write_config_byte(dev, 0x64, 0xff);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pci/ops-bcm63xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ struct pci_ops bcm63xx_cb_ops = {
* only one IO window, so it cannot be shared by PCI and cardbus, use
* fixup to choose and detect unhandled configuration
*/
static void __devinit bcm63xx_fixup(struct pci_dev *dev)
static void bcm63xx_fixup(struct pci_dev *dev)
{
static int io_window = -1;
int i, found, new_io_window;
Expand Down
6 changes: 3 additions & 3 deletions arch/mips/pci/ops-tx4927.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ static struct {
u8 trdyto;
u8 retryto;
u16 gbwc;
} tx4927_pci_opts __devinitdata = {
} tx4927_pci_opts = {
.trdyto = 0,
.retryto = 0,
.gbwc = 0xfe0, /* 4064 GBUSCLK for CCFG.GTOT=0b11 */
};

char *__devinit tx4927_pcibios_setup(char *str)
char *tx4927_pcibios_setup(char *str)
{
unsigned long val;

Expand Down Expand Up @@ -495,7 +495,7 @@ irqreturn_t tx4927_pcierr_interrupt(int irq, void *dev_id)
}

#ifdef CONFIG_TOSHIBA_FPCIB0
static void __devinit tx4927_quirk_slc90e66_bridge(struct pci_dev *dev)
static void tx4927_quirk_slc90e66_bridge(struct pci_dev *dev)
{
struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(dev->bus);

Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pci/pci-alchemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static struct syscore_ops alchemy_pci_pmops = {
.resume = alchemy_pci_resume,
};

static int __devinit alchemy_pci_probe(struct platform_device *pdev)
static int alchemy_pci_probe(struct platform_device *pdev)
{
struct alchemy_pci_platdata *pd = pdev->dev.platform_data;
struct alchemy_pci_context *ctx;
Expand Down
Loading

0 comments on commit 28eb0e4

Please sign in to comment.