diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/init.h | 18 | ||||
| -rw-r--r-- | include/linux/kobject.h | 18 | ||||
| -rw-r--r-- | include/linux/mfd/88pm80x.h | 2 | ||||
| -rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 4 | ||||
| -rw-r--r-- | include/linux/mfd/pm8xxx/irq.h | 8 | ||||
| -rw-r--r-- | include/linux/pci.h | 8 |
6 files changed, 17 insertions, 41 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index e59041e21df..f63692d6902 100644 --- a/include/linux/init.h +++ b/include/linux/init.h | |||
| @@ -93,13 +93,13 @@ | |||
| 93 | 93 | ||
| 94 | #define __exit __section(.exit.text) __exitused __cold notrace | 94 | #define __exit __section(.exit.text) __exitused __cold notrace |
| 95 | 95 | ||
| 96 | /* Used for HOTPLUG */ | 96 | /* Used for HOTPLUG, but that is always enabled now, so just make them noops */ |
| 97 | #define __devinit __section(.devinit.text) __cold notrace | 97 | #define __devinit |
| 98 | #define __devinitdata __section(.devinit.data) | 98 | #define __devinitdata |
| 99 | #define __devinitconst __constsection(.devinit.rodata) | 99 | #define __devinitconst |
| 100 | #define __devexit __section(.devexit.text) __exitused __cold notrace | 100 | #define __devexit |
| 101 | #define __devexitdata __section(.devexit.data) | 101 | #define __devexitdata |
| 102 | #define __devexitconst __constsection(.devexit.rodata) | 102 | #define __devexitconst |
| 103 | 103 | ||
| 104 | /* Used for HOTPLUG_CPU */ | 104 | /* Used for HOTPLUG_CPU */ |
| 105 | #define __cpuinit __section(.cpuinit.text) __cold notrace | 105 | #define __cpuinit __section(.cpuinit.text) __cold notrace |
| @@ -126,10 +126,6 @@ | |||
| 126 | #define __INITRODATA .section ".init.rodata","a",%progbits | 126 | #define __INITRODATA .section ".init.rodata","a",%progbits |
| 127 | #define __FINITDATA .previous | 127 | #define __FINITDATA .previous |
| 128 | 128 | ||
| 129 | #define __DEVINIT .section ".devinit.text", "ax" | ||
| 130 | #define __DEVINITDATA .section ".devinit.data", "aw" | ||
| 131 | #define __DEVINITRODATA .section ".devinit.rodata", "a" | ||
| 132 | |||
| 133 | #define __CPUINIT .section ".cpuinit.text", "ax" | 129 | #define __CPUINIT .section ".cpuinit.text", "ax" |
| 134 | #define __CPUINITDATA .section ".cpuinit.data", "aw" | 130 | #define __CPUINITDATA .section ".cpuinit.data", "aw" |
| 135 | #define __CPUINITRODATA .section ".cpuinit.rodata", "a" | 131 | #define __CPUINITRODATA .section ".cpuinit.rodata", "a" |
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 1e57449395b..939b11268c8 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
| @@ -203,7 +203,6 @@ extern struct kobject *power_kobj; | |||
| 203 | /* The global /sys/firmware/ kobject for people to chain off of */ | 203 | /* The global /sys/firmware/ kobject for people to chain off of */ |
| 204 | extern struct kobject *firmware_kobj; | 204 | extern struct kobject *firmware_kobj; |
| 205 | 205 | ||
| 206 | #if defined(CONFIG_HOTPLUG) | ||
| 207 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); | 206 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); |
| 208 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, | 207 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, |
| 209 | char *envp[]); | 208 | char *envp[]); |
| @@ -213,22 +212,5 @@ int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...); | |||
| 213 | 212 | ||
| 214 | int kobject_action_type(const char *buf, size_t count, | 213 | int kobject_action_type(const char *buf, size_t count, |
| 215 | enum kobject_action *type); | 214 | enum kobject_action *type); |
| 216 | #else | ||
| 217 | static inline int kobject_uevent(struct kobject *kobj, | ||
| 218 | enum kobject_action action) | ||
| 219 | { return 0; } | ||
| 220 | static inline int kobject_uevent_env(struct kobject *kobj, | ||
| 221 | enum kobject_action action, | ||
| 222 | char *envp[]) | ||
| 223 | { return 0; } | ||
| 224 | |||
| 225 | static inline __printf(2, 3) | ||
| 226 | int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...) | ||
| 227 | { return -ENOMEM; } | ||
| 228 | |||
| 229 | static inline int kobject_action_type(const char *buf, size_t count, | ||
| 230 | enum kobject_action *type) | ||
| 231 | { return -EINVAL; } | ||
| 232 | #endif | ||
| 233 | 215 | ||
| 234 | #endif /* _KOBJECT_H_ */ | 216 | #endif /* _KOBJECT_H_ */ |
diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h index a0ca0dca124..478672ed0c3 100644 --- a/include/linux/mfd/88pm80x.h +++ b/include/linux/mfd/88pm80x.h | |||
| @@ -364,6 +364,6 @@ static inline int pm80x_dev_resume(struct device *dev) | |||
| 364 | #endif | 364 | #endif |
| 365 | 365 | ||
| 366 | extern int pm80x_init(struct i2c_client *client, | 366 | extern int pm80x_init(struct i2c_client *client, |
| 367 | const struct i2c_device_id *id) __devinit; | 367 | const struct i2c_device_id *id); |
| 368 | extern int pm80x_deinit(struct i2c_client *client); | 368 | extern int pm80x_deinit(struct i2c_client *client); |
| 369 | #endif /* __LINUX_MFD_88PM80X_H */ | 369 | #endif /* __LINUX_MFD_88PM80X_H */ |
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 1491044efa1..1cb5698b4d7 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h | |||
| @@ -291,9 +291,9 @@ struct ab8500_platform_data { | |||
| 291 | struct ab8500_codec_platform_data *codec; | 291 | struct ab8500_codec_platform_data *codec; |
| 292 | }; | 292 | }; |
| 293 | 293 | ||
| 294 | extern int __devinit ab8500_init(struct ab8500 *ab8500, | 294 | extern int ab8500_init(struct ab8500 *ab8500, |
| 295 | enum ab8500_version version); | 295 | enum ab8500_version version); |
| 296 | extern int __devexit ab8500_exit(struct ab8500 *ab8500); | 296 | extern int ab8500_exit(struct ab8500 *ab8500); |
| 297 | 297 | ||
| 298 | extern int ab8500_suspend(struct ab8500 *ab8500); | 298 | extern int ab8500_suspend(struct ab8500 *ab8500); |
| 299 | 299 | ||
diff --git a/include/linux/mfd/pm8xxx/irq.h b/include/linux/mfd/pm8xxx/irq.h index 4b21769f448..f83d6b43ecb 100644 --- a/include/linux/mfd/pm8xxx/irq.h +++ b/include/linux/mfd/pm8xxx/irq.h | |||
| @@ -37,21 +37,21 @@ struct pm_irq_chip; | |||
| 37 | 37 | ||
| 38 | #ifdef CONFIG_MFD_PM8XXX_IRQ | 38 | #ifdef CONFIG_MFD_PM8XXX_IRQ |
| 39 | int pm8xxx_get_irq_stat(struct pm_irq_chip *chip, int irq); | 39 | int pm8xxx_get_irq_stat(struct pm_irq_chip *chip, int irq); |
| 40 | struct pm_irq_chip * __devinit pm8xxx_irq_init(struct device *dev, | 40 | struct pm_irq_chip *pm8xxx_irq_init(struct device *dev, |
| 41 | const struct pm8xxx_irq_platform_data *pdata); | 41 | const struct pm8xxx_irq_platform_data *pdata); |
| 42 | int __devexit pm8xxx_irq_exit(struct pm_irq_chip *chip); | 42 | int pm8xxx_irq_exit(struct pm_irq_chip *chip); |
| 43 | #else | 43 | #else |
| 44 | static inline int pm8xxx_get_irq_stat(struct pm_irq_chip *chip, int irq) | 44 | static inline int pm8xxx_get_irq_stat(struct pm_irq_chip *chip, int irq) |
| 45 | { | 45 | { |
| 46 | return -ENXIO; | 46 | return -ENXIO; |
| 47 | } | 47 | } |
| 48 | static inline struct pm_irq_chip * __devinit pm8xxx_irq_init( | 48 | static inline struct pm_irq_chip *pm8xxx_irq_init( |
| 49 | const struct device *dev, | 49 | const struct device *dev, |
| 50 | const struct pm8xxx_irq_platform_data *pdata) | 50 | const struct pm8xxx_irq_platform_data *pdata) |
| 51 | { | 51 | { |
| 52 | return ERR_PTR(-ENXIO); | 52 | return ERR_PTR(-ENXIO); |
| 53 | } | 53 | } |
| 54 | static inline int __devexit pm8xxx_irq_exit(struct pm_irq_chip *chip) | 54 | static inline int pm8xxx_irq_exit(struct pm_irq_chip *chip) |
| 55 | { | 55 | { |
| 56 | return -ENXIO; | 56 | return -ENXIO; |
| 57 | } | 57 | } |
diff --git a/include/linux/pci.h b/include/linux/pci.h index ee2179546c6..d03d2463efa 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -588,7 +588,7 @@ struct pci_driver { | |||
| 588 | * in a generic manner. | 588 | * in a generic manner. |
| 589 | */ | 589 | */ |
| 590 | #define DEFINE_PCI_DEVICE_TABLE(_table) \ | 590 | #define DEFINE_PCI_DEVICE_TABLE(_table) \ |
| 591 | const struct pci_device_id _table[] __devinitconst | 591 | const struct pci_device_id _table[] |
| 592 | 592 | ||
| 593 | /** | 593 | /** |
| 594 | * PCI_DEVICE - macro used to describe a specific pci device | 594 | * PCI_DEVICE - macro used to describe a specific pci device |
| @@ -686,7 +686,7 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus, | |||
| 686 | int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); | 686 | int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); |
| 687 | int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax); | 687 | int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax); |
| 688 | void pci_bus_release_busn_res(struct pci_bus *b); | 688 | void pci_bus_release_busn_res(struct pci_bus *b); |
| 689 | struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, | 689 | struct pci_bus *pci_scan_root_bus(struct device *parent, int bus, |
| 690 | struct pci_ops *ops, void *sysdata, | 690 | struct pci_ops *ops, void *sysdata, |
| 691 | struct list_head *resources); | 691 | struct list_head *resources); |
| 692 | struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, | 692 | struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, |
| @@ -941,10 +941,8 @@ void set_pcie_hotplug_bridge(struct pci_dev *pdev); | |||
| 941 | 941 | ||
| 942 | /* Functions for PCI Hotplug drivers to use */ | 942 | /* Functions for PCI Hotplug drivers to use */ |
| 943 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); | 943 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); |
| 944 | #ifdef CONFIG_HOTPLUG | ||
| 945 | unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge); | 944 | unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge); |
| 946 | unsigned int pci_rescan_bus(struct pci_bus *bus); | 945 | unsigned int pci_rescan_bus(struct pci_bus *bus); |
| 947 | #endif | ||
| 948 | 946 | ||
| 949 | /* Vital product data routines */ | 947 | /* Vital product data routines */ |
| 950 | ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); | 948 | ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); |
| @@ -1580,7 +1578,7 @@ extern int pci_pci_problems; | |||
| 1580 | 1578 | ||
| 1581 | extern unsigned long pci_cardbus_io_size; | 1579 | extern unsigned long pci_cardbus_io_size; |
| 1582 | extern unsigned long pci_cardbus_mem_size; | 1580 | extern unsigned long pci_cardbus_mem_size; |
| 1583 | extern u8 __devinitdata pci_dfl_cache_line_size; | 1581 | extern u8 pci_dfl_cache_line_size; |
| 1584 | extern u8 pci_cache_line_size; | 1582 | extern u8 pci_cache_line_size; |
| 1585 | 1583 | ||
| 1586 | extern unsigned long pci_hotplug_io_size; | 1584 | extern unsigned long pci_hotplug_io_size; |
