forked from Minki/linux
Driver core __dev* removal patches
Here are the remaining __dev* removal patches against the 3.8-rc2 tree. All of these patches were previously sent to the subsystem maintainers, most of them were picked up and pushed to you, but there were a number that fell through the cracks, and new drivers were added during the merge window, so this series cleans up the rest of the instances of these markings. Third time's the charm... Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEABECAAYFAlDmHOIACgkQMUfUDdst+ykTZgCePgK84Im3FFooEXJwaPbaf4ls lO4AoMEDoWK+BHWOsjQwFPOwFFPEN2Xh =6oAQ -----END PGP SIGNATURE----- Merge tag 'driver-core-3.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core Pull driver core __dev* removal patches - take 3 - from Greg Kroah-Hartman: "Here are the remaining __dev* removal patches against the 3.8-rc2 tree. All of these patches were previously sent to the subsystem maintainers, most of them were picked up and pushed to you, but there were a number that fell through the cracks, and new drivers were added during the merge window, so this series cleans up the rest of the instances of these markings. Third time's the charm... Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>" Fixed up trivial conflict with the pinctrl pull in pinctrl-sirf.c. * tag 'driver-core-3.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (54 commits) misc: remove __dev* attributes. include: remove __dev* attributes. Documentation: remove __dev* attributes. Drivers: misc: remove __dev* attributes. Drivers: block: remove __dev* attributes. Drivers: bcma: remove __dev* attributes. Drivers: char: remove __dev* attributes. Drivers: clocksource: remove __dev* attributes. Drivers: ssb: remove __dev* attributes. Drivers: dma: remove __dev* attributes. Drivers: gpu: remove __dev* attributes. Drivers: infinband: remove __dev* attributes. Drivers: memory: remove __dev* attributes. Drivers: mmc: remove __dev* attributes. Drivers: iommu: remove __dev* attributes. Drivers: power: remove __dev* attributes. Drivers: message: remove __dev* attributes. Drivers: macintosh: remove __dev* attributes. Drivers: mfd: remove __dev* attributes. pstore: remove __dev* attributes. ...
This commit is contained in:
commit
49569646b2
@ -116,7 +116,7 @@ my_suspend (struct pci_dev * pci_dev,
|
||||
return 0; /* a negative value on error, 0 on success. */
|
||||
}
|
||||
|
||||
static void __devexit
|
||||
static void
|
||||
my_remove (struct pci_dev * pci_dev)
|
||||
{
|
||||
my_device *my = pci_get_drvdata (pci_dev);
|
||||
@ -124,7 +124,7 @@ my_remove (struct pci_dev * pci_dev)
|
||||
/* Describe me. */
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
static int
|
||||
my_probe (struct pci_dev * pci_dev,
|
||||
const struct pci_device_id * pci_id)
|
||||
{
|
||||
@ -157,7 +157,7 @@ my_pci_driver = {
|
||||
.id_table = my_pci_device_ids,
|
||||
|
||||
.probe = my_probe,
|
||||
.remove = __devexit_p (my_remove),
|
||||
.remove = my_remove,
|
||||
|
||||
/* Power management functions. */
|
||||
.suspend = my_suspend,
|
||||
|
@ -76,7 +76,7 @@ To notify SR-IOV core of Virtual Function Migration:
|
||||
|
||||
Following piece of code illustrates the usage of the SR-IOV API.
|
||||
|
||||
static int __devinit dev_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
static int dev_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
{
|
||||
pci_enable_sriov(dev, NR_VIRTFN);
|
||||
|
||||
@ -85,7 +85,7 @@ static int __devinit dev_probe(struct pci_dev *dev, const struct pci_device_id *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __devexit dev_remove(struct pci_dev *dev)
|
||||
static void dev_remove(struct pci_dev *dev)
|
||||
{
|
||||
pci_disable_sriov(dev);
|
||||
|
||||
@ -131,7 +131,7 @@ static struct pci_driver dev_driver = {
|
||||
.name = "SR-IOV Physical Function driver",
|
||||
.id_table = dev_id_table,
|
||||
.probe = dev_probe,
|
||||
.remove = __devexit_p(dev_remove),
|
||||
.remove = dev_remove,
|
||||
.suspend = dev_suspend,
|
||||
.resume = dev_resume,
|
||||
.shutdown = dev_shutdown,
|
||||
|
@ -183,12 +183,6 @@ Please mark the initialization and cleanup functions where appropriate
|
||||
initializes.
|
||||
__exit Exit code. Ignored for non-modular drivers.
|
||||
|
||||
|
||||
__devinit Device initialization code.
|
||||
Identical to __init if the kernel is not compiled
|
||||
with CONFIG_HOTPLUG, normal function otherwise.
|
||||
__devexit The same for __exit.
|
||||
|
||||
Tips on when/where to use the above attributes:
|
||||
o The module_init()/module_exit() functions (and all
|
||||
initialization functions called _only_ from these)
|
||||
@ -196,20 +190,6 @@ Tips on when/where to use the above attributes:
|
||||
|
||||
o Do not mark the struct pci_driver.
|
||||
|
||||
o The ID table array should be marked __devinitconst; this is done
|
||||
automatically if the table is declared with DEFINE_PCI_DEVICE_TABLE().
|
||||
|
||||
o The probe() and remove() functions should be marked __devinit
|
||||
and __devexit respectively. All initialization functions
|
||||
exclusively called by the probe() routine, can be marked __devinit.
|
||||
Ditto for remove() and __devexit.
|
||||
|
||||
o If mydriver_remove() is marked with __devexit(), then all address
|
||||
references to mydriver_remove must use __devexit_p(mydriver_remove)
|
||||
(in the struct pci_driver declaration for example).
|
||||
__devexit_p() will generate the function name _or_ NULL if the
|
||||
function will be discarded. For an example, see drivers/net/tg3.c.
|
||||
|
||||
o Do NOT mark a function if you are not sure which mark to use.
|
||||
Better to not mark the function than mark the function wrong.
|
||||
|
||||
|
@ -185,7 +185,7 @@ input driver:
|
||||
.acpi_match_table ACPI_PTR(mpu3050_acpi_match),
|
||||
},
|
||||
.probe = mpu3050_probe,
|
||||
.remove = __devexit_p(mpu3050_remove),
|
||||
.remove = mpu3050_remove,
|
||||
.id_table = mpu3050_ids,
|
||||
};
|
||||
|
||||
|
@ -91,7 +91,7 @@ Example (from the nxp OHCI driver):
|
||||
|
||||
static const unsigned short normal_i2c[] = { 0x2c, 0x2d, I2C_CLIENT_END };
|
||||
|
||||
static int __devinit usb_hcd_nxp_probe(struct platform_device *pdev)
|
||||
static int usb_hcd_nxp_probe(struct platform_device *pdev)
|
||||
{
|
||||
(...)
|
||||
struct i2c_adapter *i2c_adap;
|
||||
|
@ -236,7 +236,7 @@ static int rpmsg_sample_probe(struct rpmsg_channel *rpdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __devexit rpmsg_sample_remove(struct rpmsg_channel *rpdev)
|
||||
static void rpmsg_sample_remove(struct rpmsg_channel *rpdev)
|
||||
{
|
||||
dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n");
|
||||
}
|
||||
@ -253,7 +253,7 @@ static struct rpmsg_driver rpmsg_sample_client = {
|
||||
.id_table = rpmsg_driver_sample_id_table,
|
||||
.probe = rpmsg_sample_probe,
|
||||
.callback = rpmsg_sample_cb,
|
||||
.remove = __devexit_p(rpmsg_sample_remove),
|
||||
.remove = rpmsg_sample_remove,
|
||||
};
|
||||
|
||||
static int __init init(void)
|
||||
|
@ -345,7 +345,7 @@ SPI protocol drivers somewhat resemble platform device drivers:
|
||||
},
|
||||
|
||||
.probe = CHIP_probe,
|
||||
.remove = __devexit_p(CHIP_remove),
|
||||
.remove = CHIP_remove,
|
||||
.suspend = CHIP_suspend,
|
||||
.resume = CHIP_resume,
|
||||
};
|
||||
@ -355,7 +355,7 @@ device whose board_info gave a modalias of "CHIP". Your probe() code
|
||||
might look like this unless you're creating a device which is managing
|
||||
a bus (appearing under /sys/class/spi_master).
|
||||
|
||||
static int __devinit CHIP_probe(struct spi_device *spi)
|
||||
static int CHIP_probe(struct spi_device *spi)
|
||||
{
|
||||
struct CHIP *chip;
|
||||
struct CHIP_platform_data *pdata;
|
||||
|
@ -174,8 +174,7 @@ The recommended approach is as follows:
|
||||
|
||||
static atomic_t drv_instance = ATOMIC_INIT(0);
|
||||
|
||||
static int __devinit drv_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *pci_id)
|
||||
static int drv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
{
|
||||
...
|
||||
state->instance = atomic_inc_return(&drv_instance) - 1;
|
||||
|
@ -182,8 +182,7 @@ int iterate(void *p)
|
||||
|
||||
static atomic_t drv_instance = ATOMIC_INIT(0);
|
||||
|
||||
static int __devinit drv_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *pci_id)
|
||||
static int drv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
{
|
||||
...
|
||||
state->instance = atomic_inc_return(&drv_instance) - 1;
|
||||
|
@ -9,8 +9,8 @@
|
||||
#ifndef _ASM_AXP_PARPORT_H
|
||||
#define _ASM_AXP_PARPORT_H 1
|
||||
|
||||
static int __devinit parport_pc_find_isa_ports (int autoirq, int autodma);
|
||||
static int __devinit parport_pc_find_nonpci_ports (int autoirq, int autodma)
|
||||
static int parport_pc_find_isa_ports (int autoirq, int autodma);
|
||||
static int parport_pc_find_nonpci_ports (int autoirq, int autodma)
|
||||
{
|
||||
return parport_pc_find_isa_ports (autoirq, autodma);
|
||||
}
|
||||
|
@ -59,13 +59,13 @@ struct pci_controller *pci_isa_hose;
|
||||
* Quirks.
|
||||
*/
|
||||
|
||||
static void __devinit quirk_isa_bridge(struct pci_dev *dev)
|
||||
static void quirk_isa_bridge(struct pci_dev *dev)
|
||||
{
|
||||
dev->class = PCI_CLASS_BRIDGE_ISA << 8;
|
||||
}
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82378, quirk_isa_bridge);
|
||||
|
||||
static void __devinit quirk_cypress(struct pci_dev *dev)
|
||||
static void quirk_cypress(struct pci_dev *dev)
|
||||
{
|
||||
/* The Notorious Cy82C693 chip. */
|
||||
|
||||
@ -104,7 +104,7 @@ static void __devinit quirk_cypress(struct pci_dev *dev)
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, quirk_cypress);
|
||||
|
||||
/* Called for each device after PCI setup is done. */
|
||||
static void __devinit pcibios_fixup_final(struct pci_dev *dev)
|
||||
static void pcibios_fixup_final(struct pci_dev *dev)
|
||||
{
|
||||
unsigned int class = dev->class >> 8;
|
||||
|
||||
@ -198,8 +198,7 @@ subsys_initcall(pcibios_init);
|
||||
#ifdef ALPHA_RESTORE_SRM_SETUP
|
||||
static struct pdev_srm_saved_conf *srm_saved_configs;
|
||||
|
||||
void __devinit
|
||||
pdev_save_srm_config(struct pci_dev *dev)
|
||||
void pdev_save_srm_config(struct pci_dev *dev)
|
||||
{
|
||||
struct pdev_srm_saved_conf *tmp;
|
||||
static int printed = 0;
|
||||
@ -241,8 +240,7 @@ pci_restore_srm_config(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
void __devinit
|
||||
pcibios_fixup_bus(struct pci_bus *bus)
|
||||
void pcibios_fixup_bus(struct pci_bus *bus)
|
||||
{
|
||||
struct pci_dev *dev = bus->self;
|
||||
|
||||
|
@ -68,7 +68,7 @@ enum ipi_message_type {
|
||||
};
|
||||
|
||||
/* Set to a secondary's cpuid when it comes online. */
|
||||
static int smp_secondary_alive __devinitdata = 0;
|
||||
static int smp_secondary_alive = 0;
|
||||
|
||||
int smp_num_probed; /* Internal processor count */
|
||||
int smp_num_cpus = 1; /* Number that came online. */
|
||||
@ -172,7 +172,7 @@ smp_callin(void)
|
||||
}
|
||||
|
||||
/* Wait until hwrpb->txrdy is clear for cpu. Return -1 on timeout. */
|
||||
static int __devinit
|
||||
static int
|
||||
wait_for_txrdy (unsigned long cpumask)
|
||||
{
|
||||
unsigned long timeout;
|
||||
@ -468,7 +468,7 @@ smp_prepare_cpus(unsigned int max_cpus)
|
||||
smp_num_cpus = smp_num_probed;
|
||||
}
|
||||
|
||||
void __devinit
|
||||
void
|
||||
smp_prepare_boot_cpu(void)
|
||||
{
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ titan_late_init(void)
|
||||
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
static int
|
||||
titan_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
|
||||
{
|
||||
u8 intline;
|
||||
|
@ -686,8 +686,7 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent,
|
||||
* %-EINVAL no platform data passed
|
||||
* %0 successful.
|
||||
*/
|
||||
static int __devinit
|
||||
__sa1111_probe(struct device *me, struct resource *mem, int irq)
|
||||
static int __sa1111_probe(struct device *me, struct resource *mem, int irq)
|
||||
{
|
||||
struct sa1111_platform_data *pd = me->platform_data;
|
||||
struct sa1111 *sachip;
|
||||
@ -1011,7 +1010,7 @@ static int sa1111_resume(struct platform_device *dev)
|
||||
#define sa1111_resume NULL
|
||||
#endif
|
||||
|
||||
static int __devinit sa1111_probe(struct platform_device *pdev)
|
||||
static int sa1111_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct resource *mem;
|
||||
int irq;
|
||||
|
@ -176,7 +176,7 @@ static int scoop_resume(struct platform_device *dev)
|
||||
#define scoop_resume NULL
|
||||
#endif
|
||||
|
||||
static int __devinit scoop_probe(struct platform_device *pdev)
|
||||
static int scoop_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct scoop_dev *devptr;
|
||||
struct scoop_config *inf;
|
||||
@ -243,7 +243,7 @@ err_ioremap:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit scoop_remove(struct platform_device *pdev)
|
||||
static int scoop_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct scoop_dev *sdev = platform_get_drvdata(pdev);
|
||||
int ret;
|
||||
@ -268,7 +268,7 @@ static int __devexit scoop_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver scoop_driver = {
|
||||
.probe = scoop_probe,
|
||||
.remove = __devexit_p(scoop_remove),
|
||||
.remove = scoop_remove,
|
||||
.suspend = scoop_suspend,
|
||||
.resume = scoop_resume,
|
||||
.driver = {
|
||||
|
@ -78,7 +78,7 @@ void pcibios_report_status(u_int status_mask, int warn)
|
||||
* Bug 3 is responsible for the sound DMA grinding to a halt. We now
|
||||
* live with bug 2.
|
||||
*/
|
||||
static void __devinit pci_fixup_83c553(struct pci_dev *dev)
|
||||
static void pci_fixup_83c553(struct pci_dev *dev)
|
||||
{
|
||||
/*
|
||||
* Set memory region to start at address 0, and enable IO
|
||||
@ -130,7 +130,7 @@ static void __devinit pci_fixup_83c553(struct pci_dev *dev)
|
||||
}
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_83C553, pci_fixup_83c553);
|
||||
|
||||
static void __devinit pci_fixup_unassign(struct pci_dev *dev)
|
||||
static void pci_fixup_unassign(struct pci_dev *dev)
|
||||
{
|
||||
dev->resource[0].end -= dev->resource[0].start;
|
||||
dev->resource[0].start = 0;
|
||||
@ -142,7 +142,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND2, PCI_DEVICE_ID_WINBOND2_89C940F,
|
||||
* 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 pci_fixup_dec21285(struct pci_dev *dev)
|
||||
static void pci_fixup_dec21285(struct pci_dev *dev)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -161,7 +161,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21285, pci_fixup_d
|
||||
/*
|
||||
* PCI IDE controllers use non-standard I/O port decoding, respect it.
|
||||
*/
|
||||
static void __devinit pci_fixup_ide_bases(struct pci_dev *dev)
|
||||
static void pci_fixup_ide_bases(struct pci_dev *dev)
|
||||
{
|
||||
struct resource *r;
|
||||
int i;
|
||||
@ -182,7 +182,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases);
|
||||
/*
|
||||
* Put the DEC21142 to sleep
|
||||
*/
|
||||
static void __devinit pci_fixup_dec21142(struct pci_dev *dev)
|
||||
static void pci_fixup_dec21142(struct pci_dev *dev)
|
||||
{
|
||||
pci_write_config_dword(dev, 0x40, 0x80000000);
|
||||
}
|
||||
@ -204,7 +204,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21142, pci_fixup_d
|
||||
* functional. However, The CY82C693U _does not work_ in bus
|
||||
* master mode without locking the PCI bus solid.
|
||||
*/
|
||||
static void __devinit pci_fixup_cy82c693(struct pci_dev *dev)
|
||||
static void pci_fixup_cy82c693(struct pci_dev *dev)
|
||||
{
|
||||
if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE) {
|
||||
u32 base0, base1;
|
||||
@ -254,7 +254,7 @@ static void __devinit pci_fixup_cy82c693(struct pci_dev *dev)
|
||||
}
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, pci_fixup_cy82c693);
|
||||
|
||||
static void __devinit pci_fixup_it8152(struct pci_dev *dev)
|
||||
static void pci_fixup_it8152(struct pci_dev *dev)
|
||||
{
|
||||
int i;
|
||||
/* fixup for ITE 8152 devices */
|
||||
@ -361,9 +361,7 @@ void pcibios_fixup_bus(struct pci_bus *bus)
|
||||
printk(KERN_INFO "PCI: bus%d: Fast back to back transfers %sabled\n",
|
||||
bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis");
|
||||
}
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
EXPORT_SYMBOL(pcibios_fixup_bus);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Swizzle the device pin each time we cross a bridge. If a platform does
|
||||
@ -380,7 +378,7 @@ EXPORT_SYMBOL(pcibios_fixup_bus);
|
||||
* PCI standard swizzle is implemented on plug-in cards and Cardbus based
|
||||
* PCI extenders, so it can not be ignored.
|
||||
*/
|
||||
static u8 __devinit pcibios_swizzle(struct pci_dev *dev, u8 *pin)
|
||||
static u8 pcibios_swizzle(struct pci_dev *dev, u8 *pin)
|
||||
{
|
||||
struct pci_sys_data *sys = dev->sysdata;
|
||||
int slot, oldpin = *pin;
|
||||
|
@ -339,7 +339,7 @@ static struct miscdevice etb_miscdev = {
|
||||
.fops = &etb_fops,
|
||||
};
|
||||
|
||||
static int __devinit etb_probe(struct amba_device *dev, const struct amba_id *id)
|
||||
static int etb_probe(struct amba_device *dev, const struct amba_id *id)
|
||||
{
|
||||
struct tracectx *t = &tracer;
|
||||
int ret = 0;
|
||||
@ -531,7 +531,7 @@ static ssize_t trace_mode_store(struct kobject *kobj,
|
||||
static struct kobj_attribute trace_mode_attr =
|
||||
__ATTR(trace_mode, 0644, trace_mode_show, trace_mode_store);
|
||||
|
||||
static int __devinit etm_probe(struct amba_device *dev, const struct amba_id *id)
|
||||
static int etm_probe(struct amba_device *dev, const struct amba_id *id)
|
||||
{
|
||||
struct tracectx *t = &tracer;
|
||||
int ret = 0;
|
||||
|
@ -132,7 +132,7 @@ static int cpu_pmu_request_irq(struct arm_pmu *cpu_pmu, irq_handler_t handler)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __devinit cpu_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static void cpu_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
int cpu;
|
||||
for_each_possible_cpu(cpu) {
|
||||
@ -178,7 +178,7 @@ static struct notifier_block __cpuinitdata cpu_pmu_hotplug_notifier = {
|
||||
/*
|
||||
* PMU platform driver and devicetree bindings.
|
||||
*/
|
||||
static struct of_device_id __devinitdata cpu_pmu_of_device_ids[] = {
|
||||
static struct of_device_id cpu_pmu_of_device_ids[] = {
|
||||
{.compatible = "arm,cortex-a15-pmu", .data = armv7_a15_pmu_init},
|
||||
{.compatible = "arm,cortex-a9-pmu", .data = armv7_a9_pmu_init},
|
||||
{.compatible = "arm,cortex-a8-pmu", .data = armv7_a8_pmu_init},
|
||||
@ -190,7 +190,7 @@ static struct of_device_id __devinitdata cpu_pmu_of_device_ids[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static struct platform_device_id __devinitdata cpu_pmu_plat_device_ids[] = {
|
||||
static struct platform_device_id cpu_pmu_plat_device_ids[] = {
|
||||
{.name = "arm-pmu"},
|
||||
{},
|
||||
};
|
||||
@ -198,7 +198,7 @@ static struct platform_device_id __devinitdata cpu_pmu_plat_device_ids[] = {
|
||||
/*
|
||||
* CPU PMU identification and probing.
|
||||
*/
|
||||
static int __devinit probe_current_pmu(struct arm_pmu *pmu)
|
||||
static int probe_current_pmu(struct arm_pmu *pmu)
|
||||
{
|
||||
int cpu = get_cpu();
|
||||
unsigned long cpuid = read_cpuid_id();
|
||||
@ -252,7 +252,7 @@ static int __devinit probe_current_pmu(struct arm_pmu *pmu)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devinit cpu_pmu_device_probe(struct platform_device *pdev)
|
||||
static int cpu_pmu_device_probe(struct platform_device *pdev)
|
||||
{
|
||||
const struct of_device_id *of_id;
|
||||
int (*init_fn)(struct arm_pmu *);
|
||||
|
@ -653,7 +653,7 @@ static int armv6_map_event(struct perf_event *event)
|
||||
&armv6_perf_cache_map, 0xFF);
|
||||
}
|
||||
|
||||
static int __devinit armv6pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int armv6pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
cpu_pmu->name = "v6";
|
||||
cpu_pmu->handle_irq = armv6pmu_handle_irq;
|
||||
@ -685,7 +685,7 @@ static int armv6mpcore_map_event(struct perf_event *event)
|
||||
&armv6mpcore_perf_cache_map, 0xFF);
|
||||
}
|
||||
|
||||
static int __devinit armv6mpcore_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int armv6mpcore_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
cpu_pmu->name = "v6mpcore";
|
||||
cpu_pmu->handle_irq = armv6pmu_handle_irq;
|
||||
|
@ -1226,7 +1226,7 @@ static void armv7pmu_init(struct arm_pmu *cpu_pmu)
|
||||
cpu_pmu->max_period = (1LLU << 32) - 1;
|
||||
};
|
||||
|
||||
static u32 __devinit armv7_read_num_pmnc_events(void)
|
||||
static u32 armv7_read_num_pmnc_events(void)
|
||||
{
|
||||
u32 nb_cnt;
|
||||
|
||||
@ -1237,7 +1237,7 @@ static u32 __devinit armv7_read_num_pmnc_events(void)
|
||||
return nb_cnt + 1;
|
||||
}
|
||||
|
||||
static int __devinit armv7_a8_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int armv7_a8_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
armv7pmu_init(cpu_pmu);
|
||||
cpu_pmu->name = "ARMv7 Cortex-A8";
|
||||
@ -1246,7 +1246,7 @@ static int __devinit armv7_a8_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit armv7_a9_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int armv7_a9_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
armv7pmu_init(cpu_pmu);
|
||||
cpu_pmu->name = "ARMv7 Cortex-A9";
|
||||
@ -1255,7 +1255,7 @@ static int __devinit armv7_a9_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit armv7_a5_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int armv7_a5_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
armv7pmu_init(cpu_pmu);
|
||||
cpu_pmu->name = "ARMv7 Cortex-A5";
|
||||
@ -1264,7 +1264,7 @@ static int __devinit armv7_a5_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit armv7_a15_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int armv7_a15_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
armv7pmu_init(cpu_pmu);
|
||||
cpu_pmu->name = "ARMv7 Cortex-A15";
|
||||
@ -1274,7 +1274,7 @@ static int __devinit armv7_a15_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit armv7_a7_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int armv7_a7_pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
armv7pmu_init(cpu_pmu);
|
||||
cpu_pmu->name = "ARMv7 Cortex-A7";
|
||||
|
@ -440,7 +440,7 @@ static int xscale_map_event(struct perf_event *event)
|
||||
&xscale_perf_cache_map, 0xFF);
|
||||
}
|
||||
|
||||
static int __devinit xscale1pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int xscale1pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
cpu_pmu->name = "xscale1";
|
||||
cpu_pmu->handle_irq = xscale1pmu_handle_irq;
|
||||
@ -810,7 +810,7 @@ static inline void xscale2pmu_write_counter(struct perf_event *event, u32 val)
|
||||
}
|
||||
}
|
||||
|
||||
static int __devinit xscale2pmu_init(struct arm_pmu *cpu_pmu)
|
||||
static int xscale2pmu_init(struct arm_pmu *cpu_pmu)
|
||||
{
|
||||
cpu_pmu->name = "xscale2";
|
||||
cpu_pmu->handle_irq = xscale2pmu_handle_irq;
|
||||
|
@ -358,7 +358,7 @@ static int cpld_video_probe(struct i2c_client *client,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit cpld_video_remove(struct i2c_client *client)
|
||||
static int cpld_video_remove(struct i2c_client *client)
|
||||
{
|
||||
cpld_client = NULL;
|
||||
return 0;
|
||||
|
@ -256,7 +256,7 @@ static int cdce_probe(struct i2c_client *client,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit cdce_remove(struct i2c_client *client)
|
||||
static int cdce_remove(struct i2c_client *client)
|
||||
{
|
||||
cdce_i2c_client = NULL;
|
||||
return 0;
|
||||
@ -274,7 +274,7 @@ static struct i2c_driver cdce_driver = {
|
||||
.name = "cdce949",
|
||||
},
|
||||
.probe = cdce_probe,
|
||||
.remove = __devexit_p(cdce_remove),
|
||||
.remove = cdce_remove,
|
||||
.id_table = cdce_id,
|
||||
};
|
||||
|
||||
|
@ -135,7 +135,7 @@ static struct pci_ops pcie_ops = {
|
||||
.write = pcie_wr_conf,
|
||||
};
|
||||
|
||||
static void __devinit rc_pci_fixup(struct pci_dev *dev)
|
||||
static void rc_pci_fixup(struct pci_dev *dev)
|
||||
{
|
||||
/*
|
||||
* Prevent enumeration of root complex.
|
||||
|
@ -188,7 +188,7 @@ static struct cpufreq_driver mxc_driver = {
|
||||
.name = "imx",
|
||||
};
|
||||
|
||||
static int __devinit mxc_cpufreq_driver_init(void)
|
||||
static int mxc_cpufreq_driver_init(void)
|
||||
{
|
||||
return cpufreq_register_driver(&mxc_driver);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
#define BP_MMDC_MAPSR_PSD 0
|
||||
#define BP_MMDC_MAPSR_PSS 4
|
||||
|
||||
static int __devinit imx_mmdc_probe(struct platform_device *pdev)
|
||||
static int imx_mmdc_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
void __iomem *mmdc_base, *reg;
|
||||
|
@ -504,7 +504,7 @@ iop13xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
|
||||
|
||||
/* Scan an IOP13XX PCI bus. nr selects which ATU we use.
|
||||
*/
|
||||
struct pci_bus * __devinit iop13xx_scan_bus(int nr, struct pci_sys_data *sys)
|
||||
struct pci_bus *iop13xx_scan_bus(int nr, struct pci_sys_data *sys)
|
||||
{
|
||||
int which_atu;
|
||||
struct pci_bus *bus = NULL;
|
||||
|
@ -214,7 +214,7 @@ static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys)
|
||||
* PCI_CLASS_BRIDGE_HOST or Linux will errantly try to process the BAR's on
|
||||
* the device. Decoding setup is handled by the orion code.
|
||||
*/
|
||||
static void __devinit rc_pci_fixup(struct pci_dev *dev)
|
||||
static void rc_pci_fixup(struct pci_dev *dev)
|
||||
{
|
||||
if (dev->bus->parent == NULL && dev->devfn == 0) {
|
||||
int i;
|
||||
|
@ -92,7 +92,7 @@ static struct i2c_board_info acs5k_i2c_devs[] __initdata = {
|
||||
},
|
||||
};
|
||||
|
||||
static void __devinit acs5k_i2c_init(void)
|
||||
static void acs5k_i2c_init(void)
|
||||
{
|
||||
/* The gpio interface */
|
||||
platform_device_register(&acs5k_i2c_device);
|
||||
|
@ -61,7 +61,7 @@ struct gen_pool *sram_get_gpool(char *pool_name)
|
||||
}
|
||||
EXPORT_SYMBOL(sram_get_gpool);
|
||||
|
||||
static int __devinit sram_probe(struct platform_device *pdev)
|
||||
static int sram_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct sram_platdata *pdata = pdev->dev.platform_data;
|
||||
struct sram_bank_info *info;
|
||||
@ -125,7 +125,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit sram_remove(struct platform_device *pdev)
|
||||
static int sram_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct sram_bank_info *info;
|
||||
|
||||
|
@ -120,7 +120,7 @@ int msm_proc_comm(unsigned cmd, unsigned *data1, unsigned *data2)
|
||||
* and unknown state. This function should be called early to
|
||||
* wait on the ARM9.
|
||||
*/
|
||||
void __devinit proc_comm_boot_wait(void)
|
||||
void proc_comm_boot_wait(void)
|
||||
{
|
||||
void __iomem *base = MSM_SHARED_RAM_BASE;
|
||||
|
||||
|
@ -988,7 +988,7 @@ int smd_core_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit msm_smd_probe(struct platform_device *pdev)
|
||||
static int msm_smd_probe(struct platform_device *pdev)
|
||||
{
|
||||
/*
|
||||
* If we haven't waited for the ARM9 to boot up till now,
|
||||
|
@ -173,7 +173,7 @@ static struct pci_ops pcie_ops = {
|
||||
.write = pcie_wr_conf,
|
||||
};
|
||||
|
||||
static void __devinit rc_pci_fixup(struct pci_dev *dev)
|
||||
static void rc_pci_fixup(struct pci_dev *dev)
|
||||
{
|
||||
/*
|
||||
* Prevent enumeration of root complex.
|
||||
|
@ -142,7 +142,7 @@ static struct omap_mbox mbox_dsp_info = {
|
||||
|
||||
static struct omap_mbox *omap1_mboxes[] = { &mbox_dsp_info, NULL };
|
||||
|
||||
static int __devinit omap1_mbox_probe(struct platform_device *pdev)
|
||||
static int omap1_mbox_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct resource *mem;
|
||||
int ret;
|
||||
@ -165,7 +165,7 @@ static int __devinit omap1_mbox_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit omap1_mbox_remove(struct platform_device *pdev)
|
||||
static int omap1_mbox_remove(struct platform_device *pdev)
|
||||
{
|
||||
omap_mbox_unregister();
|
||||
iounmap(mbox_base);
|
||||
@ -174,7 +174,7 @@ static int __devexit omap1_mbox_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver omap1_mbox_driver = {
|
||||
.probe = omap1_mbox_probe,
|
||||
.remove = __devexit_p(omap1_mbox_remove),
|
||||
.remove = omap1_mbox_remove,
|
||||
.driver = {
|
||||
.name = "omap-mailbox",
|
||||
},
|
||||
|
@ -744,7 +744,7 @@ static int gpmc_setup_irq(void)
|
||||
return request_irq(gpmc_irq, gpmc_handle_irq, 0, "gpmc", NULL);
|
||||
}
|
||||
|
||||
static __devexit int gpmc_free_irq(void)
|
||||
static int gpmc_free_irq(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -762,7 +762,7 @@ static __devexit int gpmc_free_irq(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __devexit gpmc_mem_exit(void)
|
||||
static void gpmc_mem_exit(void)
|
||||
{
|
||||
int cs;
|
||||
|
||||
@ -774,7 +774,7 @@ static void __devexit gpmc_mem_exit(void)
|
||||
|
||||
}
|
||||
|
||||
static int __devinit gpmc_mem_init(void)
|
||||
static int gpmc_mem_init(void)
|
||||
{
|
||||
int cs, rc;
|
||||
unsigned long boot_rom_space = 0;
|
||||
@ -1121,7 +1121,7 @@ int gpmc_calc_timings(struct gpmc_timings *gpmc_t,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __devinit int gpmc_probe(struct platform_device *pdev)
|
||||
static int gpmc_probe(struct platform_device *pdev)
|
||||
{
|
||||
int rc;
|
||||
u32 l;
|
||||
@ -1177,7 +1177,7 @@ static __devinit int gpmc_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __devexit int gpmc_remove(struct platform_device *pdev)
|
||||
static int gpmc_remove(struct platform_device *pdev)
|
||||
{
|
||||
gpmc_free_irq();
|
||||
gpmc_mem_exit();
|
||||
@ -1187,7 +1187,7 @@ static __devexit int gpmc_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver gpmc_driver = {
|
||||
.probe = gpmc_probe,
|
||||
.remove = __devexit_p(gpmc_remove),
|
||||
.remove = gpmc_remove,
|
||||
.driver = {
|
||||
.name = DEVICE_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
|
@ -342,7 +342,7 @@ struct omap_mbox mbox_2_info = {
|
||||
struct omap_mbox *omap4_mboxes[] = { &mbox_1_info, &mbox_2_info, NULL };
|
||||
#endif
|
||||
|
||||
static int __devinit omap2_mbox_probe(struct platform_device *pdev)
|
||||
static int omap2_mbox_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct resource *mem;
|
||||
int ret;
|
||||
@ -395,7 +395,7 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit omap2_mbox_remove(struct platform_device *pdev)
|
||||
static int omap2_mbox_remove(struct platform_device *pdev)
|
||||
{
|
||||
omap_mbox_unregister();
|
||||
iounmap(mbox_base);
|
||||
@ -404,7 +404,7 @@ static int __devexit omap2_mbox_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver omap2_mbox_driver = {
|
||||
.probe = omap2_mbox_probe,
|
||||
.remove = __devexit_p(omap2_mbox_remove),
|
||||
.remove = omap2_mbox_remove,
|
||||
.driver = {
|
||||
.name = "omap-mailbox",
|
||||
},
|
||||
|
@ -506,7 +506,7 @@ static int __init pci_setup(struct pci_sys_data *sys)
|
||||
/*****************************************************************************
|
||||
* General PCIe + PCI
|
||||
****************************************************************************/
|
||||
static void __devinit rc_pci_fixup(struct pci_dev *dev)
|
||||
static void rc_pci_fixup(struct pci_dev *dev)
|
||||
{
|
||||
/*
|
||||
* Prevent enumeration of root complex.
|
||||
|
@ -123,7 +123,7 @@ static const struct of_device_id memc_ids[] = {
|
||||
{}
|
||||
};
|
||||
|
||||
static int __devinit sirfsoc_memc_probe(struct platform_device *op)
|
||||
static int sirfsoc_memc_probe(struct platform_device *op)
|
||||
{
|
||||
struct device_node *np = op->dev.of_node;
|
||||
|
||||
|
@ -107,7 +107,7 @@ static const struct of_device_id rtciobrg_ids[] = {
|
||||
{}
|
||||
};
|
||||
|
||||
static int __devinit sirfsoc_rtciobrg_probe(struct platform_device *op)
|
||||
static int sirfsoc_rtciobrg_probe(struct platform_device *op)
|
||||
{
|
||||
struct device_node *np = op->dev.of_node;
|
||||
|
||||
|
@ -198,7 +198,7 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = {
|
||||
|
||||
static struct platform_device *corgipm_device;
|
||||
|
||||
static int __devinit corgipm_init(void)
|
||||
static int corgipm_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -829,7 +829,7 @@ static const struct platform_suspend_ops sharpsl_pm_ops = {
|
||||
};
|
||||
#endif
|
||||
|
||||
static int __devinit sharpsl_pm_probe(struct platform_device *pdev)
|
||||
static int sharpsl_pm_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret, irq;
|
||||
|
||||
@ -941,7 +941,7 @@ static struct platform_driver sharpsl_pm_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __devinit sharpsl_pm_init(void)
|
||||
static int sharpsl_pm_init(void)
|
||||
{
|
||||
return platform_driver_register(&sharpsl_pm_driver);
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = {
|
||||
|
||||
static struct platform_device *spitzpm_device;
|
||||
|
||||
static int __devinit spitzpm_init(void)
|
||||
static int spitzpm_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -102,7 +102,7 @@ err_reset:
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int __devexit tosa_bt_remove(struct platform_device *dev)
|
||||
static int tosa_bt_remove(struct platform_device *dev)
|
||||
{
|
||||
struct tosa_bt_data *data = dev->dev.platform_data;
|
||||
struct rfkill *rfk = platform_get_drvdata(dev);
|
||||
@ -125,7 +125,7 @@ static int __devexit tosa_bt_remove(struct platform_device *dev)
|
||||
|
||||
static struct platform_driver tosa_bt_driver = {
|
||||
.probe = tosa_bt_probe,
|
||||
.remove = __devexit_p(tosa_bt_remove),
|
||||
.remove = tosa_bt_remove,
|
||||
|
||||
.driver = {
|
||||
.name = "tosa-bt",
|
||||
|
@ -62,7 +62,7 @@ static const struct rfkill_ops h1940bt_rfkill_ops = {
|
||||
.set_block = h1940bt_set_block,
|
||||
};
|
||||
|
||||
static int __devinit h1940bt_probe(struct platform_device *pdev)
|
||||
static int h1940bt_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct rfkill *rfk;
|
||||
int ret = 0;
|
||||
|
@ -93,7 +93,7 @@ static struct notifier_block osiris_dvs_nb = {
|
||||
.notifier_call = osiris_dvs_notify,
|
||||
};
|
||||
|
||||
static int __devinit osiris_dvs_probe(struct platform_device *pdev)
|
||||
static int osiris_dvs_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@ -126,7 +126,7 @@ err_nogpio:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit osiris_dvs_remove(struct platform_device *pdev)
|
||||
static int osiris_dvs_remove(struct platform_device *pdev)
|
||||
{
|
||||
dev_info(&pdev->dev, "exiting\n");
|
||||
|
||||
@ -167,7 +167,7 @@ static const struct dev_pm_ops osiris_dvs_pm = {
|
||||
|
||||
static struct platform_driver osiris_dvs_driver = {
|
||||
.probe = osiris_dvs_probe,
|
||||
.remove = __devexit_p(osiris_dvs_remove),
|
||||
.remove = osiris_dvs_remove,
|
||||
.driver = {
|
||||
.name = "osiris-dvs",
|
||||
.owner = THIS_MODULE,
|
||||
|
@ -290,7 +290,7 @@ static const struct i2c_board_info wm2200_i2c[] = {
|
||||
.platform_data = &wm2200_pdata, },
|
||||
};
|
||||
|
||||
static __devinitdata const struct {
|
||||
static const struct {
|
||||
u8 id;
|
||||
u8 rev;
|
||||
const char *name;
|
||||
@ -343,8 +343,8 @@ static __devinitdata const struct {
|
||||
.i2c_devs = wm2200_i2c, .num_i2c_devs = ARRAY_SIZE(wm2200_i2c) },
|
||||
};
|
||||
|
||||
static __devinit int wlf_gf_module_probe(struct i2c_client *i2c,
|
||||
const struct i2c_device_id *i2c_id)
|
||||
static int wlf_gf_module_probe(struct i2c_client *i2c,
|
||||
const struct i2c_device_id *i2c_id)
|
||||
{
|
||||
int ret, i, j, id, rev;
|
||||
|
||||
|
@ -171,7 +171,7 @@ static struct fb_videomode crag6410_lcd_timing = {
|
||||
};
|
||||
|
||||
/* 405566 clocks per frame => 60Hz refresh requires 24333960Hz clock */
|
||||
static struct s3c_fb_platdata crag6410_lcd_pdata __devinitdata = {
|
||||
static struct s3c_fb_platdata crag6410_lcd_pdata = {
|
||||
.setup_gpio = s3c64xx_fb_gpio_setup_24bpp,
|
||||
.vtiming = &crag6410_lcd_timing,
|
||||
.win[0] = &crag6410_fb_win0,
|
||||
@ -181,7 +181,7 @@ static struct s3c_fb_platdata crag6410_lcd_pdata __devinitdata = {
|
||||
|
||||
/* 2x6 keypad */
|
||||
|
||||
static uint32_t crag6410_keymap[] __devinitdata = {
|
||||
static uint32_t crag6410_keymap[] = {
|
||||
/* KEY(row, col, keycode) */
|
||||
KEY(0, 0, KEY_VOLUMEUP),
|
||||
KEY(0, 1, KEY_HOME),
|
||||
@ -197,12 +197,12 @@ static uint32_t crag6410_keymap[] __devinitdata = {
|
||||
KEY(1, 5, KEY_CAMERA),
|
||||
};
|
||||
|
||||
static struct matrix_keymap_data crag6410_keymap_data __devinitdata = {
|
||||
static struct matrix_keymap_data crag6410_keymap_data = {
|
||||
.keymap = crag6410_keymap,
|
||||
.keymap_size = ARRAY_SIZE(crag6410_keymap),
|
||||
};
|
||||
|
||||
static struct samsung_keypad_platdata crag6410_keypad_data __devinitdata = {
|
||||
static struct samsung_keypad_platdata crag6410_keypad_data = {
|
||||
.keymap_data = &crag6410_keymap_data,
|
||||
.rows = 2,
|
||||
.cols = 6,
|
||||
@ -407,11 +407,11 @@ static struct wm831x_buckv_pdata vddarm_pdata = {
|
||||
.dvs_gpio = S3C64XX_GPK(0),
|
||||
};
|
||||
|
||||
static struct regulator_consumer_supply vddarm_consumers[] __devinitdata = {
|
||||
static struct regulator_consumer_supply vddarm_consumers[] = {
|
||||
REGULATOR_SUPPLY("vddarm", NULL),
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddarm __devinitdata = {
|
||||
static struct regulator_init_data vddarm = {
|
||||
.constraints = {
|
||||
.name = "VDDARM",
|
||||
.min_uV = 1000000,
|
||||
@ -425,11 +425,11 @@ static struct regulator_init_data vddarm __devinitdata = {
|
||||
.driver_data = &vddarm_pdata,
|
||||
};
|
||||
|
||||
static struct regulator_consumer_supply vddint_consumers[] __devinitdata = {
|
||||
static struct regulator_consumer_supply vddint_consumers[] = {
|
||||
REGULATOR_SUPPLY("vddint", NULL),
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddint __devinitdata = {
|
||||
static struct regulator_init_data vddint = {
|
||||
.constraints = {
|
||||
.name = "VDDINT",
|
||||
.min_uV = 1000000,
|
||||
@ -442,27 +442,27 @@ static struct regulator_init_data vddint __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddmem __devinitdata = {
|
||||
static struct regulator_init_data vddmem = {
|
||||
.constraints = {
|
||||
.name = "VDDMEM",
|
||||
.always_on = 1,
|
||||
},
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddsys __devinitdata = {
|
||||
static struct regulator_init_data vddsys = {
|
||||
.constraints = {
|
||||
.name = "VDDSYS,VDDEXT,VDDPCM,VDDSS",
|
||||
.always_on = 1,
|
||||
},
|
||||
};
|
||||
|
||||
static struct regulator_consumer_supply vddmmc_consumers[] __devinitdata = {
|
||||
static struct regulator_consumer_supply vddmmc_consumers[] = {
|
||||
REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"),
|
||||
REGULATOR_SUPPLY("vmmc", "s3c-sdhci.1"),
|
||||
REGULATOR_SUPPLY("vmmc", "s3c-sdhci.2"),
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddmmc __devinitdata = {
|
||||
static struct regulator_init_data vddmmc = {
|
||||
.constraints = {
|
||||
.name = "VDDMMC,UH",
|
||||
.always_on = 1,
|
||||
@ -472,7 +472,7 @@ static struct regulator_init_data vddmmc __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddotgi __devinitdata = {
|
||||
static struct regulator_init_data vddotgi = {
|
||||
.constraints = {
|
||||
.name = "VDDOTGi",
|
||||
.always_on = 1,
|
||||
@ -480,7 +480,7 @@ static struct regulator_init_data vddotgi __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddotg __devinitdata = {
|
||||
static struct regulator_init_data vddotg = {
|
||||
.constraints = {
|
||||
.name = "VDDOTG",
|
||||
.always_on = 1,
|
||||
@ -488,7 +488,7 @@ static struct regulator_init_data vddotg __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddhi __devinitdata = {
|
||||
static struct regulator_init_data vddhi = {
|
||||
.constraints = {
|
||||
.name = "VDDHI",
|
||||
.always_on = 1,
|
||||
@ -496,7 +496,7 @@ static struct regulator_init_data vddhi __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddadc __devinitdata = {
|
||||
static struct regulator_init_data vddadc = {
|
||||
.constraints = {
|
||||
.name = "VDDADC,VDDDAC",
|
||||
.always_on = 1,
|
||||
@ -504,7 +504,7 @@ static struct regulator_init_data vddadc __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddmem0 __devinitdata = {
|
||||
static struct regulator_init_data vddmem0 = {
|
||||
.constraints = {
|
||||
.name = "VDDMEM0",
|
||||
.always_on = 1,
|
||||
@ -512,7 +512,7 @@ static struct regulator_init_data vddmem0 __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddpll __devinitdata = {
|
||||
static struct regulator_init_data vddpll = {
|
||||
.constraints = {
|
||||
.name = "VDDPLL",
|
||||
.always_on = 1,
|
||||
@ -520,7 +520,7 @@ static struct regulator_init_data vddpll __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddlcd __devinitdata = {
|
||||
static struct regulator_init_data vddlcd = {
|
||||
.constraints = {
|
||||
.name = "VDDLCD",
|
||||
.always_on = 1,
|
||||
@ -528,7 +528,7 @@ static struct regulator_init_data vddlcd __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct regulator_init_data vddalive __devinitdata = {
|
||||
static struct regulator_init_data vddalive = {
|
||||
.constraints = {
|
||||
.name = "VDDALIVE",
|
||||
.always_on = 1,
|
||||
@ -536,28 +536,28 @@ static struct regulator_init_data vddalive __devinitdata = {
|
||||
.supply_regulator = "WALLVDD",
|
||||
};
|
||||
|
||||
static struct wm831x_backup_pdata banff_backup_pdata __devinitdata = {
|
||||
static struct wm831x_backup_pdata banff_backup_pdata = {
|
||||
.charger_enable = 1,
|
||||
.vlim = 2500, /* mV */
|
||||
.ilim = 200, /* uA */
|
||||
};
|
||||
|
||||
static struct wm831x_status_pdata banff_red_led __devinitdata = {
|
||||
static struct wm831x_status_pdata banff_red_led = {
|
||||
.name = "banff:red:",
|
||||
.default_src = WM831X_STATUS_MANUAL,
|
||||
};
|
||||
|
||||
static struct wm831x_status_pdata banff_green_led __devinitdata = {
|
||||
static struct wm831x_status_pdata banff_green_led = {
|
||||
.name = "banff:green:",
|
||||
.default_src = WM831X_STATUS_MANUAL,
|
||||
};
|
||||
|
||||
static struct wm831x_touch_pdata touch_pdata __devinitdata = {
|
||||
static struct wm831x_touch_pdata touch_pdata = {
|
||||
.data_irq = S3C_EINT(26),
|
||||
.pd_irq = S3C_EINT(27),
|
||||
};
|
||||
|
||||
static struct wm831x_pdata crag_pmic_pdata __devinitdata = {
|
||||
static struct wm831x_pdata crag_pmic_pdata = {
|
||||
.wm831x_num = 1,
|
||||
.gpio_base = BANFF_PMIC_GPIO_BASE,
|
||||
.soft_shutdown = true,
|
||||
@ -601,7 +601,7 @@ static struct wm831x_pdata crag_pmic_pdata __devinitdata = {
|
||||
.touch = &touch_pdata,
|
||||
};
|
||||
|
||||
static struct i2c_board_info i2c_devs0[] __devinitdata = {
|
||||
static struct i2c_board_info i2c_devs0[] = {
|
||||
{ I2C_BOARD_INFO("24c08", 0x50), },
|
||||
{ I2C_BOARD_INFO("tca6408", 0x20),
|
||||
.platform_data = &crag6410_pca_data,
|
||||
@ -616,13 +616,13 @@ static struct s3c2410_platform_i2c i2c0_pdata = {
|
||||
.frequency = 400000,
|
||||
};
|
||||
|
||||
static struct regulator_consumer_supply pvdd_1v2_consumers[] __devinitdata = {
|
||||
static struct regulator_consumer_supply pvdd_1v2_consumers[] = {
|
||||
REGULATOR_SUPPLY("DCVDD", "spi0.0"),
|
||||
REGULATOR_SUPPLY("AVDD", "spi0.0"),
|
||||
REGULATOR_SUPPLY("AVDD", "spi0.1"),
|
||||
};
|
||||
|
||||
static struct regulator_init_data pvdd_1v2 __devinitdata = {
|
||||
static struct regulator_init_data pvdd_1v2 = {
|
||||
.constraints = {
|
||||
.name = "PVDD_1V2",
|
||||
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
||||
@ -632,7 +632,7 @@ static struct regulator_init_data pvdd_1v2 __devinitdata = {
|
||||
.num_consumer_supplies = ARRAY_SIZE(pvdd_1v2_consumers),
|
||||
};
|
||||
|
||||
static struct regulator_consumer_supply pvdd_1v8_consumers[] __devinitdata = {
|
||||
static struct regulator_consumer_supply pvdd_1v8_consumers[] = {
|
||||
REGULATOR_SUPPLY("LDOVDD", "1-001a"),
|
||||
REGULATOR_SUPPLY("PLLVDD", "1-001a"),
|
||||
REGULATOR_SUPPLY("DBVDD", "1-001a"),
|
||||
@ -664,7 +664,7 @@ static struct regulator_consumer_supply pvdd_1v8_consumers[] __devinitdata = {
|
||||
REGULATOR_SUPPLY("CPVDD", "wm5110-codec"),
|
||||
};
|
||||
|
||||
static struct regulator_init_data pvdd_1v8 __devinitdata = {
|
||||
static struct regulator_init_data pvdd_1v8 = {
|
||||
.constraints = {
|
||||
.name = "PVDD_1V8",
|
||||
.always_on = 1,
|
||||
@ -674,12 +674,12 @@ static struct regulator_init_data pvdd_1v8 __devinitdata = {
|
||||
.num_consumer_supplies = ARRAY_SIZE(pvdd_1v8_consumers),
|
||||
};
|
||||
|
||||
static struct regulator_consumer_supply pvdd_3v3_consumers[] __devinitdata = {
|
||||
static struct regulator_consumer_supply pvdd_3v3_consumers[] = {
|
||||
REGULATOR_SUPPLY("MICVDD", "1-001a"),
|
||||
REGULATOR_SUPPLY("AVDD1", "1-001a"),
|
||||
};
|
||||
|
||||
static struct regulator_init_data pvdd_3v3 __devinitdata = {
|
||||
static struct regulator_init_data pvdd_3v3 = {
|
||||
.constraints = {
|
||||
.name = "PVDD_3V3",
|
||||
.always_on = 1,
|
||||
@ -689,7 +689,7 @@ static struct regulator_init_data pvdd_3v3 __devinitdata = {
|
||||
.num_consumer_supplies = ARRAY_SIZE(pvdd_3v3_consumers),
|
||||
};
|
||||
|
||||
static struct wm831x_pdata glenfarclas_pmic_pdata __devinitdata = {
|
||||
static struct wm831x_pdata glenfarclas_pmic_pdata = {
|
||||
.wm831x_num = 2,
|
||||
.irq_base = GLENFARCLAS_PMIC_IRQ_BASE,
|
||||
.gpio_base = GLENFARCLAS_PMIC_GPIO_BASE,
|
||||
@ -721,7 +721,7 @@ static struct wm1250_ev1_pdata wm1250_ev1_pdata = {
|
||||
},
|
||||
};
|
||||
|
||||
static struct i2c_board_info i2c_devs1[] __devinitdata = {
|
||||
static struct i2c_board_info i2c_devs1[] = {
|
||||
{ I2C_BOARD_INFO("wm8311", 0x34),
|
||||
.irq = S3C_EINT(0),
|
||||
.platform_data = &glenfarclas_pmic_pdata },
|
||||
|
@ -130,7 +130,7 @@ void jornada_ssp_end(void)
|
||||
};
|
||||
EXPORT_SYMBOL(jornada_ssp_end);
|
||||
|
||||
static int __devinit jornada_ssp_probe(struct platform_device *dev)
|
||||
static int jornada_ssp_probe(struct platform_device *dev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -154,7 +154,7 @@ static u_int neponset_get_mctrl(struct uart_port *port)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct sa1100_port_fns neponset_port_fns __devinitdata = {
|
||||
static struct sa1100_port_fns neponset_port_fns = {
|
||||
.set_mctrl = neponset_set_mctrl,
|
||||
.get_mctrl = neponset_get_mctrl,
|
||||
};
|
||||
@ -233,7 +233,7 @@ static struct sa1111_platform_data sa1111_info = {
|
||||
.disable_devs = SA1111_DEVID_PS2_MSE,
|
||||
};
|
||||
|
||||
static int __devinit neponset_probe(struct platform_device *dev)
|
||||
static int neponset_probe(struct platform_device *dev)
|
||||
{
|
||||
struct neponset_drvdata *d;
|
||||
struct resource *nep_res, *sa1111_res, *smc91x_res;
|
||||
@ -368,7 +368,7 @@ static int __devinit neponset_probe(struct platform_device *dev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit neponset_remove(struct platform_device *dev)
|
||||
static int neponset_remove(struct platform_device *dev)
|
||||
{
|
||||
struct neponset_drvdata *d = platform_get_drvdata(dev);
|
||||
int irq = platform_get_irq(dev, 0);
|
||||
@ -420,7 +420,7 @@ static const struct dev_pm_ops neponset_pm_ops = {
|
||||
|
||||
static struct platform_driver neponset_device_driver = {
|
||||
.probe = neponset_probe,
|
||||
.remove = __devexit_p(neponset_remove),
|
||||
.remove = neponset_remove,
|
||||
.driver = {
|
||||
.name = "neponset",
|
||||
.owner = THIS_MODULE,
|
||||
|
@ -331,7 +331,7 @@ static struct pci_ops tegra_pcie_ops = {
|
||||
.write = tegra_pcie_write_conf,
|
||||
};
|
||||
|
||||
static void __devinit tegra_pcie_fixup_bridge(struct pci_dev *dev)
|
||||
static void tegra_pcie_fixup_bridge(struct pci_dev *dev)
|
||||
{
|
||||
u16 reg;
|
||||
|
||||
@ -345,7 +345,7 @@ static void __devinit tegra_pcie_fixup_bridge(struct pci_dev *dev)
|
||||
DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, tegra_pcie_fixup_bridge);
|
||||
|
||||
/* Tegra PCIE root complex wrongly reports device class */
|
||||
static void __devinit tegra_pcie_fixup_class(struct pci_dev *dev)
|
||||
static void tegra_pcie_fixup_class(struct pci_dev *dev)
|
||||
{
|
||||
dev->class = PCI_CLASS_BRIDGE_PCI << 8;
|
||||
}
|
||||
@ -353,7 +353,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA, 0x0bf0, tegra_pcie_fixup_class);
|
||||
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA, 0x0bf1, tegra_pcie_fixup_class);
|
||||
|
||||
/* Tegra PCIE requires relaxed ordering */
|
||||
static void __devinit tegra_pcie_relax_enable(struct pci_dev *dev)
|
||||
static void tegra_pcie_relax_enable(struct pci_dev *dev)
|
||||
{
|
||||
pcie_capability_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_RELAX_EN);
|
||||
}
|
||||
|
@ -268,7 +268,7 @@ static struct tegra_emc_pdata *tegra_emc_dt_parse_pdata(
|
||||
}
|
||||
#endif
|
||||
|
||||
static struct tegra_emc_pdata __devinit *tegra_emc_fill_pdata(struct platform_device *pdev)
|
||||
static struct tegra_emc_pdata *tegra_emc_fill_pdata(struct platform_device *pdev)
|
||||
{
|
||||
struct clk *c = clk_get_sys(NULL, "emc");
|
||||
struct tegra_emc_pdata *pdata;
|
||||
@ -296,7 +296,7 @@ static struct tegra_emc_pdata __devinit *tegra_emc_fill_pdata(struct platform_de
|
||||
return pdata;
|
||||
}
|
||||
|
||||
static int __devinit tegra_emc_probe(struct platform_device *pdev)
|
||||
static int tegra_emc_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct tegra_emc_pdata *pdata;
|
||||
struct resource *res;
|
||||
@ -333,7 +333,7 @@ static int __devinit tegra_emc_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct of_device_id tegra_emc_of_match[] __devinitdata = {
|
||||
static struct of_device_id tegra_emc_of_match[] = {
|
||||
{ .compatible = "nvidia,tegra20-emc", },
|
||||
{ },
|
||||
};
|
||||
|
@ -222,7 +222,7 @@ static ssize_t dummy_looptest(struct device *dev,
|
||||
|
||||
static DEVICE_ATTR(looptest, S_IRUGO, dummy_looptest, NULL);
|
||||
|
||||
static int __devinit pl022_dummy_probe(struct spi_device *spi)
|
||||
static int pl022_dummy_probe(struct spi_device *spi)
|
||||
{
|
||||
struct dummy *p_dummy;
|
||||
int status;
|
||||
@ -251,7 +251,7 @@ out_dev_create_looptest_failed:
|
||||
return status;
|
||||
}
|
||||
|
||||
static int __devexit pl022_dummy_remove(struct spi_device *spi)
|
||||
static int pl022_dummy_remove(struct spi_device *spi)
|
||||
{
|
||||
struct dummy *p_dummy = dev_get_drvdata(&spi->dev);
|
||||
|
||||
@ -269,7 +269,7 @@ static struct spi_driver pl022_dummy_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = pl022_dummy_probe,
|
||||
.remove = __devexit_p(pl022_dummy_remove),
|
||||
.remove = pl022_dummy_remove,
|
||||
};
|
||||
|
||||
static int __init pl022_init_dummy(void)
|
||||
|
@ -2000,7 +2000,7 @@ void omap_dma_global_context_restore(void)
|
||||
omap_clear_dma(ch);
|
||||
}
|
||||
|
||||
static int __devinit omap_system_dma_probe(struct platform_device *pdev)
|
||||
static int omap_system_dma_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ch, ret = 0;
|
||||
int dma_irq;
|
||||
@ -2116,7 +2116,7 @@ exit_dma_lch_fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit omap_system_dma_remove(struct platform_device *pdev)
|
||||
static int omap_system_dma_remove(struct platform_device *pdev)
|
||||
{
|
||||
int dma_irq;
|
||||
|
||||
@ -2140,7 +2140,7 @@ static int __devexit omap_system_dma_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver omap_system_dma_driver = {
|
||||
.probe = omap_system_dma_probe,
|
||||
.remove = __devexit_p(omap_system_dma_remove),
|
||||
.remove = omap_system_dma_remove,
|
||||
.driver = {
|
||||
.name = "omap_dma_system"
|
||||
},
|
||||
|
@ -777,7 +777,7 @@ EXPORT_SYMBOL_GPL(omap_dm_timers_active);
|
||||
* Called by driver framework at the end of device registration for all
|
||||
* timer devices.
|
||||
*/
|
||||
static int __devinit omap_dm_timer_probe(struct platform_device *pdev)
|
||||
static int omap_dm_timer_probe(struct platform_device *pdev)
|
||||
{
|
||||
unsigned long flags;
|
||||
struct omap_dm_timer *timer;
|
||||
@ -864,7 +864,7 @@ static int __devinit omap_dm_timer_probe(struct platform_device *pdev)
|
||||
* In addition to freeing platform resources it also deletes the timer
|
||||
* entry from the local list.
|
||||
*/
|
||||
static int __devexit omap_dm_timer_remove(struct platform_device *pdev)
|
||||
static int omap_dm_timer_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct omap_dm_timer *timer;
|
||||
unsigned long flags;
|
||||
@ -891,7 +891,7 @@ MODULE_DEVICE_TABLE(of, omap_timer_match);
|
||||
|
||||
static struct platform_driver omap_dm_timer_driver = {
|
||||
.probe = omap_dm_timer_probe,
|
||||
.remove = __devexit_p(omap_dm_timer_remove),
|
||||
.remove = omap_dm_timer_remove,
|
||||
.driver = {
|
||||
.name = "omap_timer",
|
||||
.of_match_table = of_match_ptr(omap_timer_match),
|
||||
|
@ -72,7 +72,7 @@ void pxa_ssp_free(struct ssp_device *ssp)
|
||||
}
|
||||
EXPORT_SYMBOL(pxa_ssp_free);
|
||||
|
||||
static int __devinit pxa_ssp_probe(struct platform_device *pdev)
|
||||
static int pxa_ssp_probe(struct platform_device *pdev)
|
||||
{
|
||||
const struct platform_device_id *id = platform_get_device_id(pdev);
|
||||
struct resource *res;
|
||||
@ -164,7 +164,7 @@ err_free:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit pxa_ssp_remove(struct platform_device *pdev)
|
||||
static int pxa_ssp_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct resource *res;
|
||||
struct ssp_device *ssp;
|
||||
@ -199,7 +199,7 @@ static const struct platform_device_id ssp_id_table[] = {
|
||||
|
||||
static struct platform_driver pxa_ssp_driver = {
|
||||
.probe = pxa_ssp_probe,
|
||||
.remove = __devexit_p(pxa_ssp_remove),
|
||||
.remove = pxa_ssp_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "pxa2xx-ssp",
|
||||
|
@ -416,7 +416,7 @@ static int s3c_adc_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit s3c_adc_remove(struct platform_device *pdev)
|
||||
static int s3c_adc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct adc_device *adc = platform_get_drvdata(pdev);
|
||||
|
||||
@ -516,7 +516,7 @@ static struct platform_driver s3c_adc_driver = {
|
||||
.pm = &adc_pm_ops,
|
||||
},
|
||||
.probe = s3c_adc_probe,
|
||||
.remove = __devexit_p(s3c_adc_remove),
|
||||
.remove = s3c_adc_remove,
|
||||
};
|
||||
|
||||
static int __init adc_init(void)
|
||||
|
@ -1221,7 +1221,7 @@ static struct of_device_id armpmu_of_device_ids[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static int __devinit armpmu_device_probe(struct platform_device *pdev)
|
||||
static int armpmu_device_probe(struct platform_device *pdev)
|
||||
{
|
||||
if (!cpu_pmu)
|
||||
return -ENODEV;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <asm/processor.h>
|
||||
#include <asm/sysreg.h>
|
||||
|
||||
int __devinit read_current_timer(unsigned long *timer_value)
|
||||
int read_current_timer(unsigned long *timer_value)
|
||||
{
|
||||
*timer_value = sysreg_read(COUNT);
|
||||
return 0;
|
||||
|
@ -129,7 +129,7 @@ static struct notifier_block vreg_cpufreq_notifier_block = {
|
||||
* bfin_dpmc_probe -
|
||||
*
|
||||
*/
|
||||
static int __devinit bfin_dpmc_probe(struct platform_device *pdev)
|
||||
static int bfin_dpmc_probe(struct platform_device *pdev)
|
||||
{
|
||||
if (pdev->dev.platform_data)
|
||||
pdata = pdev->dev.platform_data;
|
||||
@ -143,7 +143,7 @@ static int __devinit bfin_dpmc_probe(struct platform_device *pdev)
|
||||
/**
|
||||
* bfin_dpmc_remove -
|
||||
*/
|
||||
static int __devexit bfin_dpmc_remove(struct platform_device *pdev)
|
||||
static int bfin_dpmc_remove(struct platform_device *pdev)
|
||||
{
|
||||
pdata = NULL;
|
||||
return cpufreq_unregister_notifier(&vreg_cpufreq_notifier_block,
|
||||
@ -152,7 +152,7 @@ static int __devexit bfin_dpmc_remove(struct platform_device *pdev)
|
||||
|
||||
struct platform_driver bfin_dpmc_device_driver = {
|
||||
.probe = bfin_dpmc_probe,
|
||||
.remove = __devexit_p(bfin_dpmc_remove),
|
||||
.remove = bfin_dpmc_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <arch/hwregs/intr_vect.h>
|
||||
|
||||
void __devinit pcibios_fixup_bus(struct pci_bus *b)
|
||||
void pcibios_fixup_bus(struct pci_bus *b)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
|
||||
cpumask_set_cpu(i, &phys_cpu_present_map);
|
||||
}
|
||||
|
||||
void __devinit smp_prepare_boot_cpu(void)
|
||||
void smp_prepare_boot_cpu(void)
|
||||
{
|
||||
/* PGD pointer has moved after per_cpu initialization so
|
||||
* update the MMU.
|
||||
|
@ -852,7 +852,7 @@ void __init setup_arch(char **cmdline_p)
|
||||
/*
|
||||
*
|
||||
*/
|
||||
static int __devinit setup_arch_serial(void)
|
||||
static int setup_arch_serial(void)
|
||||
{
|
||||
/* register those serial ports that are available */
|
||||
#ifndef CONFIG_GDBSTUB_UART0
|
||||
|
@ -268,7 +268,7 @@ static void __init pci_fixup_umc_ide(struct pci_dev *d)
|
||||
d->resource[i].flags |= PCI_BASE_ADDRESS_SPACE_IO;
|
||||
}
|
||||
|
||||
static void __devinit pci_fixup_ide_bases(struct pci_dev *d)
|
||||
static void pci_fixup_ide_bases(struct pci_dev *d)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -287,7 +287,7 @@ static void __devinit pci_fixup_ide_bases(struct pci_dev *d)
|
||||
}
|
||||
}
|
||||
|
||||
static void __devinit pci_fixup_ide_trash(struct pci_dev *d)
|
||||
static void pci_fixup_ide_trash(struct pci_dev *d)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -300,7 +300,7 @@ static void __devinit pci_fixup_ide_trash(struct pci_dev *d)
|
||||
d->resource[i].start = d->resource[i].end = d->resource[i].flags = 0;
|
||||
}
|
||||
|
||||
static void __devinit pci_fixup_latency(struct pci_dev *d)
|
||||
static void pci_fixup_latency(struct pci_dev *d)
|
||||
{
|
||||
/*
|
||||
* SiS 5597 and 5598 chipsets require latency timer set to
|
||||
|
@ -153,7 +153,7 @@ extern int additional_cpus;
|
||||
#else
|
||||
#define MAX_PXM_DOMAINS (256)
|
||||
#endif
|
||||
extern int __devinitdata pxm_to_nid_map[MAX_PXM_DOMAINS];
|
||||
extern int pxm_to_nid_map[MAX_PXM_DOMAINS];
|
||||
extern int __initdata nid_to_pxm_map[MAX_NUMNODES];
|
||||
#endif
|
||||
|
||||
|
@ -87,18 +87,13 @@ static inline void iosapic_eoi(char __iomem *iosapic, u32 vector)
|
||||
}
|
||||
|
||||
extern void __init iosapic_system_init (int pcat_compat);
|
||||
extern int __devinit iosapic_init (unsigned long address,
|
||||
unsigned int gsi_base);
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
extern int iosapic_init (unsigned long address, unsigned int gsi_base);
|
||||
extern int iosapic_remove (unsigned int gsi_base);
|
||||
#else
|
||||
#define iosapic_remove(gsi_base) (-EINVAL)
|
||||
#endif /* CONFIG_HOTPLUG */
|
||||
extern int gsi_to_irq (unsigned int gsi);
|
||||
extern int iosapic_register_intr (unsigned int gsi, unsigned long polarity,
|
||||
unsigned long trigger);
|
||||
extern void iosapic_unregister_intr (unsigned int irq);
|
||||
extern void __devinit iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi,
|
||||
extern void iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi,
|
||||
unsigned long polarity,
|
||||
unsigned long trigger);
|
||||
extern int __init iosapic_register_platform_intr (u32 int_type,
|
||||
@ -109,7 +104,7 @@ extern int __init iosapic_register_platform_intr (u32 int_type,
|
||||
unsigned long trigger);
|
||||
|
||||
#ifdef CONFIG_NUMA
|
||||
extern void __devinit map_iosapic_to_node (unsigned int, int);
|
||||
extern void map_iosapic_to_node (unsigned int, int);
|
||||
#endif
|
||||
#else
|
||||
#define iosapic_system_init(pcat_compat) do { } while (0)
|
||||
|
@ -9,10 +9,9 @@
|
||||
#ifndef _ASM_IA64_PARPORT_H
|
||||
#define _ASM_IA64_PARPORT_H 1
|
||||
|
||||
static int __devinit parport_pc_find_isa_ports (int autoirq, int autodma);
|
||||
static int parport_pc_find_isa_ports(int autoirq, int autodma);
|
||||
|
||||
static int __devinit
|
||||
parport_pc_find_nonpci_ports (int autoirq, int autodma)
|
||||
static int parport_pc_find_nonpci_ports(int autoirq, int autodma)
|
||||
{
|
||||
return parport_pc_find_isa_ports(autoirq, autodma);
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ extern struct smp_boot_data {
|
||||
int cpu_phys_id[NR_CPUS];
|
||||
} smp_boot_data __initdata;
|
||||
|
||||
extern char no_int_routing __devinitdata;
|
||||
extern char no_int_routing;
|
||||
|
||||
extern cpumask_t cpu_core_map[NR_CPUS];
|
||||
DECLARE_PER_CPU_SHARED_ALIGNED(cpumask_t, cpu_sibling_map);
|
||||
|
@ -422,7 +422,7 @@ static int __init acpi_parse_madt(struct acpi_table_header *table)
|
||||
#define PXM_FLAG_LEN ((MAX_PXM_DOMAINS + 1)/32)
|
||||
|
||||
static int __initdata srat_num_cpus; /* number of cpus */
|
||||
static u32 __devinitdata pxm_flag[PXM_FLAG_LEN];
|
||||
static u32 pxm_flag[PXM_FLAG_LEN];
|
||||
#define pxm_bit_set(bit) (set_bit(bit,(void *)pxm_flag))
|
||||
#define pxm_bit_test(bit) (test_bit(bit,(void *)pxm_flag))
|
||||
static struct acpi_table_slit __initdata *slit_table;
|
||||
@ -956,8 +956,8 @@ EXPORT_SYMBOL(acpi_unmap_lsapic);
|
||||
#endif /* CONFIG_ACPI_HOTPLUG_CPU */
|
||||
|
||||
#ifdef CONFIG_ACPI_NUMA
|
||||
static acpi_status __devinit
|
||||
acpi_map_iosapic(acpi_handle handle, u32 depth, void *context, void **ret)
|
||||
static acpi_status acpi_map_iosapic(acpi_handle handle, u32 depth,
|
||||
void *context, void **ret)
|
||||
{
|
||||
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
|
||||
union acpi_object *obj;
|
||||
|
@ -147,7 +147,7 @@ static struct iosapic_intr_info {
|
||||
unsigned char trigger : 1; /* trigger mode (see iosapic.h) */
|
||||
} iosapic_intr_info[NR_IRQS];
|
||||
|
||||
static unsigned char pcat_compat __devinitdata; /* 8259 compatibility flag */
|
||||
static unsigned char pcat_compat; /* 8259 compatibility flag */
|
||||
|
||||
static inline void
|
||||
iosapic_write(struct iosapic *iosapic, unsigned int reg, u32 val)
|
||||
@ -914,10 +914,8 @@ iosapic_register_platform_intr (u32 int_type, unsigned int gsi,
|
||||
/*
|
||||
* ACPI calls this when it finds an entry for a legacy ISA IRQ override.
|
||||
*/
|
||||
void __devinit
|
||||
iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi,
|
||||
unsigned long polarity,
|
||||
unsigned long trigger)
|
||||
void iosapic_override_isa_irq(unsigned int isa_irq, unsigned int gsi,
|
||||
unsigned long polarity, unsigned long trigger)
|
||||
{
|
||||
int vector, irq;
|
||||
unsigned int dest = cpu_physical_id(smp_processor_id());
|
||||
@ -1012,8 +1010,7 @@ iosapic_check_gsi_range (unsigned int gsi_base, unsigned int ver)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __devinit
|
||||
iosapic_init (unsigned long phys_addr, unsigned int gsi_base)
|
||||
int iosapic_init(unsigned long phys_addr, unsigned int gsi_base)
|
||||
{
|
||||
int num_rte, err, index;
|
||||
unsigned int isa_irq, ver;
|
||||
@ -1070,9 +1067,7 @@ iosapic_init (unsigned long phys_addr, unsigned int gsi_base)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
int
|
||||
iosapic_remove (unsigned int gsi_base)
|
||||
int iosapic_remove(unsigned int gsi_base)
|
||||
{
|
||||
int index, err = 0;
|
||||
unsigned long flags;
|
||||
@ -1098,11 +1093,9 @@ iosapic_remove (unsigned int gsi_base)
|
||||
spin_unlock_irqrestore(&iosapic_lock, flags);
|
||||
return err;
|
||||
}
|
||||
#endif /* CONFIG_HOTPLUG */
|
||||
|
||||
#ifdef CONFIG_NUMA
|
||||
void __devinit
|
||||
map_iosapic_to_node(unsigned int gsi_base, int node)
|
||||
void map_iosapic_to_node(unsigned int gsi_base, int node)
|
||||
{
|
||||
int index;
|
||||
|
||||
|
@ -347,8 +347,7 @@ ia64_sync_itc (unsigned int master)
|
||||
/*
|
||||
* Ideally sets up per-cpu profiling hooks. Doesn't do much now...
|
||||
*/
|
||||
static inline void __devinit
|
||||
smp_setup_percpu_timer (void)
|
||||
static inline void smp_setup_percpu_timer(void)
|
||||
{
|
||||
}
|
||||
|
||||
@ -563,7 +562,7 @@ smp_prepare_cpus (unsigned int max_cpus)
|
||||
}
|
||||
}
|
||||
|
||||
void __devinit smp_prepare_boot_cpu(void)
|
||||
void smp_prepare_boot_cpu(void)
|
||||
{
|
||||
set_cpu_online(smp_processor_id(), true);
|
||||
cpu_set(smp_processor_id(), cpu_callin_map);
|
||||
@ -713,8 +712,7 @@ smp_cpus_done (unsigned int dummy)
|
||||
(int)num_online_cpus(), bogosum/(500000/HZ), (bogosum/(5000/HZ))%100);
|
||||
}
|
||||
|
||||
static inline void __devinit
|
||||
set_cpu_sibling_map(int cpu)
|
||||
static inline void set_cpu_sibling_map(int cpu)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -793,8 +791,7 @@ init_smp_config(void)
|
||||
* identify_siblings(cpu) gets called from identify_cpu. This populates the
|
||||
* information related to logical execution units in per_cpu_data structure.
|
||||
*/
|
||||
void __devinit
|
||||
identify_siblings(struct cpuinfo_ia64 *c)
|
||||
void identify_siblings(struct cpuinfo_ia64 *c)
|
||||
{
|
||||
long status;
|
||||
u16 pltid;
|
||||
|
@ -243,8 +243,7 @@ static int __init nojitter_setup(char *str)
|
||||
__setup("nojitter", nojitter_setup);
|
||||
|
||||
|
||||
void __devinit
|
||||
ia64_init_itm (void)
|
||||
void ia64_init_itm(void)
|
||||
{
|
||||
unsigned long platform_base_freq, itc_freq;
|
||||
struct pal_freq_ratio itc_ratio, proc_ratio;
|
||||
|
@ -294,11 +294,10 @@ setup_gate (void)
|
||||
ia64_patch_gate();
|
||||
}
|
||||
|
||||
void __devinit
|
||||
ia64_mmu_init (void *my_cpu_data)
|
||||
void ia64_mmu_init(void *my_cpu_data)
|
||||
{
|
||||
unsigned long pta, impl_va_bits;
|
||||
extern void __devinit tlb_init (void);
|
||||
extern void tlb_init(void);
|
||||
|
||||
#ifdef CONFIG_DISABLE_VHPT
|
||||
# define VHPT_ENABLE_BIT 0
|
||||
|
@ -337,8 +337,7 @@ flush_tlb_range (struct vm_area_struct *vma, unsigned long start,
|
||||
}
|
||||
EXPORT_SYMBOL(flush_tlb_range);
|
||||
|
||||
void __devinit
|
||||
ia64_tlb_init (void)
|
||||
void ia64_tlb_init(void)
|
||||
{
|
||||
ia64_ptce_info_t uninitialized_var(ptce_info); /* GCC be quiet */
|
||||
u64 tr_pgbits;
|
||||
|
@ -24,7 +24,7 @@
|
||||
* video device at this point.
|
||||
*/
|
||||
|
||||
static void __devinit pci_fixup_video(struct pci_dev *pdev)
|
||||
static void pci_fixup_video(struct pci_dev *pdev)
|
||||
{
|
||||
struct pci_dev *bridge;
|
||||
struct pci_bus *bus;
|
||||
|
@ -116,8 +116,7 @@ struct pci_ops pci_root_ops = {
|
||||
|
||||
/* Called by ACPI when it finds a new root bus. */
|
||||
|
||||
static struct pci_controller * __devinit
|
||||
alloc_pci_controller (int seg)
|
||||
static struct pci_controller *alloc_pci_controller(int seg)
|
||||
{
|
||||
struct pci_controller *controller;
|
||||
|
||||
@ -165,8 +164,8 @@ new_space (u64 phys_base, int sparse)
|
||||
return i;
|
||||
}
|
||||
|
||||
static u64 __devinit
|
||||
add_io_space (struct pci_root_info *info, struct acpi_resource_address64 *addr)
|
||||
static u64 add_io_space(struct pci_root_info *info,
|
||||
struct acpi_resource_address64 *addr)
|
||||
{
|
||||
struct resource *resource;
|
||||
char *name;
|
||||
@ -226,8 +225,8 @@ out:
|
||||
return ~0;
|
||||
}
|
||||
|
||||
static acpi_status __devinit resource_to_window(struct acpi_resource *resource,
|
||||
struct acpi_resource_address64 *addr)
|
||||
static acpi_status resource_to_window(struct acpi_resource *resource,
|
||||
struct acpi_resource_address64 *addr)
|
||||
{
|
||||
acpi_status status;
|
||||
|
||||
@ -249,8 +248,7 @@ static acpi_status __devinit resource_to_window(struct acpi_resource *resource,
|
||||
return AE_ERROR;
|
||||
}
|
||||
|
||||
static acpi_status __devinit
|
||||
count_window (struct acpi_resource *resource, void *data)
|
||||
static acpi_status count_window(struct acpi_resource *resource, void *data)
|
||||
{
|
||||
unsigned int *windows = (unsigned int *) data;
|
||||
struct acpi_resource_address64 addr;
|
||||
@ -263,7 +261,7 @@ count_window (struct acpi_resource *resource, void *data)
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
static __devinit acpi_status add_window(struct acpi_resource *res, void *data)
|
||||
static acpi_status add_window(struct acpi_resource *res, void *data)
|
||||
{
|
||||
struct pci_root_info *info = data;
|
||||
struct pci_window *window;
|
||||
@ -324,8 +322,7 @@ static __devinit acpi_status add_window(struct acpi_resource *res, void *data)
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
struct pci_bus * __devinit
|
||||
pci_acpi_scan_root(struct acpi_pci_root *root)
|
||||
struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
|
||||
{
|
||||
struct acpi_device *device = root->device;
|
||||
int domain = root->segment;
|
||||
@ -396,7 +393,7 @@ out1:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int __devinit is_valid_resource(struct pci_dev *dev, int idx)
|
||||
static int is_valid_resource(struct pci_dev *dev, int idx)
|
||||
{
|
||||
unsigned int i, type_mask = IORESOURCE_IO | IORESOURCE_MEM;
|
||||
struct resource *devr = &dev->resource[idx], *busr;
|
||||
@ -414,8 +411,7 @@ static int __devinit is_valid_resource(struct pci_dev *dev, int idx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __devinit
|
||||
pcibios_fixup_resources(struct pci_dev *dev, int start, int limit)
|
||||
static void pcibios_fixup_resources(struct pci_dev *dev, int start, int limit)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -427,13 +423,13 @@ pcibios_fixup_resources(struct pci_dev *dev, int start, int limit)
|
||||
}
|
||||
}
|
||||
|
||||
void __devinit pcibios_fixup_device_resources(struct pci_dev *dev)
|
||||
void pcibios_fixup_device_resources(struct pci_dev *dev)
|
||||
{
|
||||
pcibios_fixup_resources(dev, 0, PCI_BRIDGE_RESOURCES);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pcibios_fixup_device_resources);
|
||||
|
||||
static void __devinit pcibios_fixup_bridge_resources(struct pci_dev *dev)
|
||||
static void pcibios_fixup_bridge_resources(struct pci_dev *dev)
|
||||
{
|
||||
pcibios_fixup_resources(dev, PCI_BRIDGE_RESOURCES, PCI_NUM_RESOURCES);
|
||||
}
|
||||
@ -441,8 +437,7 @@ static void __devinit pcibios_fixup_bridge_resources(struct pci_dev *dev)
|
||||
/*
|
||||
* Called after each bus is probed, but before its children are examined.
|
||||
*/
|
||||
void __devinit
|
||||
pcibios_fixup_bus (struct pci_bus *b)
|
||||
void pcibios_fixup_bus(struct pci_bus *b)
|
||||
{
|
||||
struct pci_dev *dev;
|
||||
|
||||
|
@ -435,8 +435,7 @@ void sn_generate_path(struct pci_bus *pci_bus, char *address)
|
||||
geo_slot(geoid));
|
||||
}
|
||||
|
||||
void __devinit
|
||||
sn_pci_fixup_bus(struct pci_bus *bus)
|
||||
void sn_pci_fixup_bus(struct pci_bus *bus)
|
||||
{
|
||||
|
||||
if (SN_ACPI_BASE_SUPPORT())
|
||||
|
@ -977,7 +977,7 @@ int sn_hwperf_get_nearest_node(cnodeid_t node,
|
||||
return e;
|
||||
}
|
||||
|
||||
static int __devinit sn_hwperf_misc_register_init(void)
|
||||
static int sn_hwperf_misc_register_init(void)
|
||||
{
|
||||
int e;
|
||||
|
||||
|
@ -273,9 +273,8 @@ xen_bind_early_percpu_irq(void)
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
static int __devinit
|
||||
unbind_evtchn_callback(struct notifier_block *nfb,
|
||||
unsigned long action, void *hcpu)
|
||||
static int unbind_evtchn_callback(struct notifier_block *nfb,
|
||||
unsigned long action, void *hcpu)
|
||||
{
|
||||
unsigned int cpu = (unsigned long)hcpu;
|
||||
|
||||
|
@ -127,7 +127,7 @@ static void unmap_cpu_to_physid(int, int);
|
||||
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
|
||||
/* Boot up APs Routines : BSP */
|
||||
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
|
||||
void __devinit smp_prepare_boot_cpu(void)
|
||||
void smp_prepare_boot_cpu(void)
|
||||
{
|
||||
bsp_phys_id = hard_smp_processor_id();
|
||||
physid_set(bsp_phys_id, phys_cpu_present_map);
|
||||
|
@ -39,7 +39,7 @@ enum {
|
||||
#define MAX_UNIT 8
|
||||
|
||||
/* These identify the driver base version and may not be removed. */
|
||||
static const char version[] __devinitconst =
|
||||
static const char version[] =
|
||||
KERN_INFO KBUILD_MODNAME ".c:v" DRV_VERSION " " DRV_RELDATE
|
||||
" S.Opichal, M.Jurik, P.Stehlik\n"
|
||||
KERN_INFO " http://aranym.org/\n";
|
||||
|
@ -15,8 +15,8 @@
|
||||
#define outsl(port,buf,len) isa_outsb(port,buf,(len)<<2)
|
||||
|
||||
/* no dma, or IRQ autoprobing */
|
||||
static int __devinit parport_pc_find_isa_ports (int autoirq, int autodma);
|
||||
static int __devinit parport_pc_find_nonpci_ports (int autoirq, int autodma)
|
||||
static int parport_pc_find_isa_ports (int autoirq, int autodma);
|
||||
static int parport_pc_find_nonpci_ports (int autoirq, int autodma)
|
||||
{
|
||||
if (! (MACH_IS_Q40))
|
||||
return 0; /* count=0 */
|
||||
|
@ -87,7 +87,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __devinit pcibios_fixup_bus(struct pci_bus *bus)
|
||||
void pcibios_fixup_bus(struct pci_bus *bus)
|
||||
{
|
||||
struct pci_dev *dev;
|
||||
|
||||
@ -97,7 +97,7 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
|
||||
}
|
||||
}
|
||||
|
||||
char __devinit *pcibios_setup(char *str)
|
||||
char *pcibios_setup(char *str)
|
||||
{
|
||||
return str;
|
||||
}
|
||||
|
@ -655,9 +655,8 @@ void pci_resource_to_user(const struct pci_dev *dev, int bar,
|
||||
* - Some 32 bits platforms such as 4xx can have physical space larger than
|
||||
* 32 bits so we need to use 64 bits values for the parsing
|
||||
*/
|
||||
void __devinit pci_process_bridge_OF_ranges(struct pci_controller *hose,
|
||||
struct device_node *dev,
|
||||
int primary)
|
||||
void pci_process_bridge_OF_ranges(struct pci_controller *hose,
|
||||
struct device_node *dev, int primary)
|
||||
{
|
||||
const u32 *ranges;
|
||||
int rlen;
|
||||
@ -830,7 +829,7 @@ int pci_proc_domain(struct pci_bus *bus)
|
||||
/* This header fixup will do the resource fixup for all devices as they are
|
||||
* probed, but not for bridge ranges
|
||||
*/
|
||||
static void __devinit pcibios_fixup_resources(struct pci_dev *dev)
|
||||
static void pcibios_fixup_resources(struct pci_dev *dev)
|
||||
{
|
||||
struct pci_controller *hose = pci_bus_to_host(dev->bus);
|
||||
int i;
|
||||
@ -871,8 +870,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pcibios_fixup_resources);
|
||||
* things go more smoothly when it gets it right. It should covers cases such
|
||||
* as Apple "closed" bridge resources and bare-metal pSeries unassigned bridges
|
||||
*/
|
||||
static int __devinit pcibios_uninitialized_bridge_resource(struct pci_bus *bus,
|
||||
struct resource *res)
|
||||
static int pcibios_uninitialized_bridge_resource(struct pci_bus *bus,
|
||||
struct resource *res)
|
||||
{
|
||||
struct pci_controller *hose = pci_bus_to_host(bus);
|
||||
struct pci_dev *dev = bus->self;
|
||||
@ -933,7 +932,7 @@ static int __devinit pcibios_uninitialized_bridge_resource(struct pci_bus *bus,
|
||||
}
|
||||
|
||||
/* Fixup resources of a PCI<->PCI bridge */
|
||||
static void __devinit pcibios_fixup_bridge(struct pci_bus *bus)
|
||||
static void pcibios_fixup_bridge(struct pci_bus *bus)
|
||||
{
|
||||
struct resource *res;
|
||||
int i;
|
||||
@ -970,14 +969,14 @@ static void __devinit pcibios_fixup_bridge(struct pci_bus *bus)
|
||||
}
|
||||
}
|
||||
|
||||
void __devinit pcibios_setup_bus_self(struct pci_bus *bus)
|
||||
void pcibios_setup_bus_self(struct pci_bus *bus)
|
||||
{
|
||||
/* Fix up the bus resources for P2P bridges */
|
||||
if (bus->self != NULL)
|
||||
pcibios_fixup_bridge(bus);
|
||||
}
|
||||
|
||||
void __devinit pcibios_setup_bus_devices(struct pci_bus *bus)
|
||||
void pcibios_setup_bus_devices(struct pci_bus *bus)
|
||||
{
|
||||
struct pci_dev *dev;
|
||||
|
||||
@ -1002,7 +1001,7 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus)
|
||||
}
|
||||
}
|
||||
|
||||
void __devinit pcibios_fixup_bus(struct pci_bus *bus)
|
||||
void pcibios_fixup_bus(struct pci_bus *bus)
|
||||
{
|
||||
/* When called from the generic PCI probe, read PCI<->PCI bridge
|
||||
* bases. This is -not- called when generating the PCI tree from
|
||||
@ -1188,7 +1187,7 @@ clear_resource:
|
||||
pcibios_allocate_bus_resources(b);
|
||||
}
|
||||
|
||||
static inline void __devinit alloc_resource(struct pci_dev *dev, int idx)
|
||||
static inline void alloc_resource(struct pci_dev *dev, int idx)
|
||||
{
|
||||
struct resource *pr, *r = &dev->resource[idx];
|
||||
|
||||
@ -1351,7 +1350,7 @@ void __init pcibios_resource_survey(void)
|
||||
* rest of the code later, for now, keep it as-is as our main
|
||||
* resource allocation function doesn't deal with sub-trees yet.
|
||||
*/
|
||||
void __devinit pcibios_claim_one_bus(struct pci_bus *bus)
|
||||
void pcibios_claim_one_bus(struct pci_bus *bus)
|
||||
{
|
||||
struct pci_dev *dev;
|
||||
struct pci_bus *child_bus;
|
||||
@ -1410,7 +1409,8 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
|
||||
return pci_enable_resources(dev, mask);
|
||||
}
|
||||
|
||||
static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, struct list_head *resources)
|
||||
static void pcibios_setup_phb_resources(struct pci_controller *hose,
|
||||
struct list_head *resources)
|
||||
{
|
||||
unsigned long io_offset;
|
||||
struct resource *res;
|
||||
@ -1477,7 +1477,7 @@ struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus)
|
||||
return of_node_get(hose->dn);
|
||||
}
|
||||
|
||||
static void __devinit pcibios_scan_phb(struct pci_controller *hose)
|
||||
static void pcibios_scan_phb(struct pci_controller *hose)
|
||||
{
|
||||
LIST_HEAD(resources);
|
||||
struct pci_bus *bus;
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
@ -345,7 +345,7 @@ out:
|
||||
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);
|
||||
|
||||
@ -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,
|
||||
};
|
||||
|
@ -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;
|
||||
@ -362,8 +361,7 @@ out:
|
||||
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);
|
||||
|
||||
@ -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,
|
||||
};
|
||||
|
@ -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) {
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
|
@ -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 */
|
||||
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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;
|
||||
|
@ -96,21 +96,21 @@ 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);
|
||||
@ -118,14 +118,14 @@ static void __devinit loongson_cs5536_acc_fixup(struct pci_dev *pdev)
|
||||
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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
@ -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 = {
|
||||
@ -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,
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
@ -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 */
|
||||
|
@ -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);
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user