]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
misc: remove use of __devinit
authorBill Pemberton <wfp5p@virginia.edu>
Mon, 19 Nov 2012 18:23:05 +0000 (13:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 20:51:53 +0000 (12:51 -0800)
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 files changed:
drivers/misc/ad525x_dpot-i2c.c
drivers/misc/ad525x_dpot-spi.c
drivers/misc/ad525x_dpot.c
drivers/misc/apds990x.c
drivers/misc/bh1770glc.c
drivers/misc/bh1780gli.c
drivers/misc/bmp085-i2c.c
drivers/misc/bmp085-spi.c
drivers/misc/bmp085.c
drivers/misc/cb710/core.c
drivers/misc/cs5535-mfgpt.c
drivers/misc/eeprom/eeprom_93xx46.c
drivers/misc/fsa9480.c
drivers/misc/hpilo.c
drivers/misc/ibmasm/module.c
drivers/misc/ioc4.c
drivers/misc/isl29003.c
drivers/misc/lis3lv02d/lis3lv02d_i2c.c
drivers/misc/lis3lv02d/lis3lv02d_spi.c
drivers/misc/mei/main.c
drivers/misc/pch_phub.c
drivers/misc/phantom.c
drivers/misc/pti.c
drivers/misc/spear13xx_pcie_gadget.c
drivers/misc/ti_dac7512.c
drivers/misc/tsl2550.c

index 7254a98a89f622b811f32b6db84ce2f66e0e4715..c7bc84df4bdbfe445acccf8b01af1b745561aea7 100644 (file)
@@ -51,7 +51,7 @@ static const struct ad_dpot_bus_ops bops = {
        .write_r8d16    = write_r8d16,
 };
 
-static int __devinit ad_dpot_i2c_probe(struct i2c_client *client,
+static int ad_dpot_i2c_probe(struct i2c_client *client,
                                      const struct i2c_device_id *id)
 {
        struct ad_dpot_bus_data bdata = {
index 67e3073c2a6faa88691acf317ae2ef745703dafa..240c59870e7dcfcc335f21f2483ff0ebfe049fb4 100644 (file)
@@ -75,7 +75,7 @@ static const struct ad_dpot_bus_ops bops = {
        .write_r8d8     = write16,
        .write_r8d16    = write24,
 };
-static int __devinit ad_dpot_spi_probe(struct spi_device *spi)
+static int ad_dpot_spi_probe(struct spi_device *spi)
 {
        struct ad_dpot_bus_data bdata = {
                .client = spi,
index 6938f1be664dc8e865df5d50a2616b278dc261a8..8f99e8e3f0ac1b68e189977d2386279ca8dd67c7 100644 (file)
@@ -641,7 +641,7 @@ static const struct attribute_group ad525x_group_commands = {
        .attrs = ad525x_attributes_commands,
 };
 
-__devinit int ad_dpot_add_files(struct device *dev,
+int ad_dpot_add_files(struct device *dev,
                unsigned features, unsigned rdac)
 {
        int err = sysfs_create_file(&dev->kobj,
@@ -685,7 +685,7 @@ inline void ad_dpot_remove_files(struct device *dev,
        }
 }
 
-int __devinit ad_dpot_probe(struct device *dev,
+int ad_dpot_probe(struct device *dev,
                struct ad_dpot_bus_data *bdata, unsigned long devid,
                            const char *name)
 {
index f955d546f2df806359f531dc3a75bf0b122fe7f5..b2aaf3f04459af21a860d076bf744e91a140835e 100644 (file)
@@ -1047,7 +1047,7 @@ static struct attribute_group apds990x_attribute_group[] = {
        {.attrs = sysfs_attrs_ctrl },
 };
 
-static int __devinit apds990x_probe(struct i2c_client *client,
+static int apds990x_probe(struct i2c_client *client,
                                const struct i2c_device_id *id)
 {
        struct apds990x_chip *chip;
index c4b65e26a76c4272d66e847be2938b37a881a40b..003e8d9ab8a52fc3d4cc9fd6c5980c391d20fd2a 100644 (file)
@@ -1162,7 +1162,7 @@ static struct attribute_group bh1770_attribute_group = {
        .attrs = sysfs_attrs
 };
 
-static int __devinit bh1770_probe(struct i2c_client *client,
+static int bh1770_probe(struct i2c_client *client,
                                const struct i2c_device_id *id)
 {
        struct bh1770_chip *chip;
index 54f6f39f990a6a99a87b89eef923c79be18a87b8..3004904d23d47bc9c4e7afa2612b988163aaf195 100644 (file)
@@ -144,7 +144,7 @@ static const struct attribute_group bh1780_attr_group = {
        .attrs = bh1780_attributes,
 };
 
-static int __devinit bh1780_probe(struct i2c_client *client,
+static int bh1780_probe(struct i2c_client *client,
                                                const struct i2c_device_id *id)
 {
        int ret;
index 08cd7958c147f396e4011d3ca4d73b80f277e588..3abfcecf84240b57b32f7253d1742dec178561d1 100644 (file)
@@ -36,7 +36,7 @@ static int bmp085_i2c_detect(struct i2c_client *client,
        return bmp085_detect(&client->dev);
 }
 
-static int __devinit bmp085_i2c_probe(struct i2c_client *client,
+static int bmp085_i2c_probe(struct i2c_client *client,
                                      const struct i2c_device_id *id)
 {
        int err;
index ed34885a6b3f1c82c9e10520991102b47b206514..d6a52659cf24a7d15642545c7fab79915775fcff 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/err.h>
 #include "bmp085.h"
 
-static int __devinit bmp085_spi_probe(struct spi_device *client)
+static int bmp085_spi_probe(struct spi_device *client)
 {
        int err;
        struct regmap *regmap;
index 62e418293b7e8a1ddccbf2c6330b63458608e76e..849e2fed4da2841310ee9a5cd80430cb29f6d950 100644 (file)
@@ -420,7 +420,7 @@ struct regmap_config bmp085_regmap_config = {
 };
 EXPORT_SYMBOL_GPL(bmp085_regmap_config);
 
-__devinit int bmp085_probe(struct device *dev, struct regmap *regmap)
+int bmp085_probe(struct device *dev, struct regmap *regmap)
 {
        struct bmp085_data *data;
        int err = 0;
index 489c468cf965a0217e6403ac5695d0e3506cc94b..4fc9c37cd20223e7273f8553a42afad5db7f3d4b 100644 (file)
@@ -30,7 +30,7 @@ void cb710_pci_update_config_reg(struct pci_dev *pdev,
 EXPORT_SYMBOL_GPL(cb710_pci_update_config_reg);
 
 /* Some magic writes based on Windows driver init code */
-static int __devinit cb710_pci_configure(struct pci_dev *pdev)
+static int cb710_pci_configure(struct pci_dev *pdev)
 {
        unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
        struct pci_dev *pdev0;
@@ -96,7 +96,7 @@ static void cb710_release_slot(struct device *dev)
 #endif
 }
 
-static int __devinit cb710_register_slot(struct cb710_chip *chip,
+static int cb710_register_slot(struct cb710_chip *chip,
        unsigned slot_mask, unsigned io_offset, const char *name)
 {
        int nr = chip->slots;
@@ -201,7 +201,7 @@ static int cb710_resume(struct pci_dev *pdev)
 
 #endif /* CONFIG_PM */
 
-static int __devinit cb710_probe(struct pci_dev *pdev,
+static int cb710_probe(struct pci_dev *pdev,
        const struct pci_device_id *ent)
 {
        struct cb710_chip *chip;
index f505a40a8f492735793b594b89c6fc1cceddc5f8..9858f36dad8b4fe3cc468b5e090b8e163262ddac 100644 (file)
@@ -246,7 +246,7 @@ EXPORT_SYMBOL_GPL(cs5535_mfgpt_write);
  * Jordan tells me that he and Mitch once played w/ it, but it's unclear
  * what the results of that were (and they experienced some instability).
  */
-static void __devinit reset_all_timers(void)
+static void reset_all_timers(void)
 {
        uint32_t val, dummy;
 
@@ -262,7 +262,7 @@ static void __devinit reset_all_timers(void)
  * In other cases (such as with VSAless OpenFirmware), the system firmware
  * leaves timers available for us to use.
  */
-static int __devinit scan_timers(struct cs5535_mfgpt_chip *mfgpt)
+static int scan_timers(struct cs5535_mfgpt_chip *mfgpt)
 {
        struct cs5535_mfgpt_timer timer = { .chip = mfgpt };
        unsigned long flags;
@@ -289,7 +289,7 @@ static int __devinit scan_timers(struct cs5535_mfgpt_chip *mfgpt)
        return timers;
 }
 
-static int __devinit cs5535_mfgpt_probe(struct platform_device *pdev)
+static int cs5535_mfgpt_probe(struct platform_device *pdev)
 {
        struct resource *res;
        int err = -EIO, t;
index 3dc14eafc5ce775227e45772228903ae50eebcd9..3dd9005fd0e54bf6a5a09571d0156aa5d609a651 100644 (file)
@@ -309,7 +309,7 @@ static ssize_t eeprom_93xx46_store_erase(struct device *dev,
 }
 static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase);
 
-static int __devinit eeprom_93xx46_probe(struct spi_device *spi)
+static int eeprom_93xx46_probe(struct spi_device *spi)
 {
        struct eeprom_93xx46_platform_data *pd;
        struct eeprom_93xx46_dev *edev;
index 38b52b901678d004e43382ff7664eebc398d2db8..2baa52f07c7ae3392f98d0a7c0698b7a21bdc267 100644 (file)
@@ -407,7 +407,7 @@ static int fsa9480_irq_init(struct fsa9480_usbsw *usbsw)
        return 0;
 }
 
-static int __devinit fsa9480_probe(struct i2c_client *client,
+static int fsa9480_probe(struct i2c_client *client,
                         const struct i2c_device_id *id)
 {
        struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
index 47a9ce6b16fd5777e7bc54c80da4c4a46d50396f..621c7a3733901abc6cf7da5170f1380a3a376ab9 100644 (file)
@@ -686,7 +686,7 @@ static void ilo_unmap_device(struct pci_dev *pdev, struct ilo_hwinfo *hw)
        pci_iounmap(pdev, hw->mmio_vaddr);
 }
 
-static int __devinit ilo_map_device(struct pci_dev *pdev, struct ilo_hwinfo *hw)
+static int ilo_map_device(struct pci_dev *pdev, struct ilo_hwinfo *hw)
 {
        int error = -ENOMEM;
 
@@ -751,7 +751,7 @@ static void ilo_remove(struct pci_dev *pdev)
        ilo_hwdev[(minor / max_ccb)] = 0;
 }
 
-static int __devinit ilo_probe(struct pci_dev *pdev,
+static int ilo_probe(struct pci_dev *pdev,
                               const struct pci_device_id *ent)
 {
        int devnum, minor, start, error = 0;
index f34a92fd679b1e1bb1471f60a08e6a49d65be464..380e4298ada193be80b8a6feae2914ebe250adf3 100644 (file)
@@ -62,7 +62,7 @@ module_param(ibmasm_debug, int , S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(ibmasm_debug, " Set debug mode on or off");
 
 
-static int __devinit ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
+static int ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
 {
        int result;
        struct service_processor *sp;
index 794a7e002c879efa39bcacbd942d695104770d8b..3ef92dca547281327d8a7f87b20797af6419b126 100644 (file)
@@ -139,7 +139,7 @@ ioc4_unregister_submodule(struct ioc4_submodule *is)
  * even though the following code utilizes external interrupt registers
  * to perform the speed calculation.
  */
-static void __devinit
+static void
 ioc4_clock_calibrate(struct ioc4_driver_data *idd)
 {
        union ioc4_int_out int_out;
@@ -231,7 +231,7 @@ ioc4_clock_calibrate(struct ioc4_driver_data *idd)
  * on the same PCI bus at slot number 3 to differentiate IO9 from IO10.
  * If neither is present, it's a PCI-RT.
  */
-static unsigned int __devinit
+static unsigned int
 ioc4_variant(struct ioc4_driver_data *idd)
 {
        struct pci_dev *pdev = NULL;
@@ -279,7 +279,7 @@ ioc4_load_modules(struct work_struct *work)
 static DECLARE_WORK(ioc4_load_modules_work, ioc4_load_modules);
 
 /* Adds a new instance of an IOC4 card */
-static int __devinit
+static int
 ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
 {
        struct ioc4_driver_data *idd;
index bef5307296f7bc42b84c23db9c990497d7589175..9fd4c0c6e599b8d752ef48f6934f6b0533aa4c3b 100644 (file)
@@ -365,7 +365,7 @@ static int isl29003_init_client(struct i2c_client *client)
  * I2C layer
  */
 
-static int __devinit isl29003_probe(struct i2c_client *client,
+static int isl29003_probe(struct i2c_client *client,
                                    const struct i2c_device_id *id)
 {
        struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
index 403804c8612725011d94f2c28fd5524b1dd7887f..66f0483efb035cdf69bd109ac721258eb0177bdb 100644 (file)
@@ -114,7 +114,7 @@ static struct of_device_id lis3lv02d_i2c_dt_ids[] = {
 MODULE_DEVICE_TABLE(of, lis3lv02d_i2c_dt_ids);
 #endif
 
-static int __devinit lis3lv02d_i2c_probe(struct i2c_client *client,
+static int lis3lv02d_i2c_probe(struct i2c_client *client,
                                        const struct i2c_device_id *id)
 {
        int ret = 0;
index 0e415c31e035fa82926835e81aa13677cba9ab63..66a751d2ed537d8a043956e97e29e883513732ad 100644 (file)
@@ -69,7 +69,7 @@ static struct of_device_id lis302dl_spi_dt_ids[] = {
 MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids);
 #endif
 
-static int __devinit lis302dl_spi_probe(struct spi_device *spi)
+static int lis302dl_spi_probe(struct spi_device *spi)
 {
        int ret;
 
index f432b8d7e19bb0ee1ce6e9f4f9e6bcba9ec1b728..4782c582ae382bd4a009a7be0a20e69f4e6f1fb8 100644 (file)
@@ -743,7 +743,7 @@ static struct miscdevice  mei_misc_device = {
  *
  * returns true if ME Interface is valid, false otherwise
  */
-static bool __devinit mei_quirk_probe(struct pci_dev *pdev,
+static bool mei_quirk_probe(struct pci_dev *pdev,
                                const struct pci_device_id *ent)
 {
        u32 reg;
@@ -765,7 +765,7 @@ static bool __devinit mei_quirk_probe(struct pci_dev *pdev,
  *
  * returns 0 on success, <0 on failure.
  */
-static int __devinit mei_probe(struct pci_dev *pdev,
+static int mei_probe(struct pci_dev *pdev,
                                const struct pci_device_id *ent)
 {
        struct mei_device *dev;
index 5581774393c89e7069033bfed2badaa3d6c45128..3896cff2579fb067424c60635830d140f020daca 100644 (file)
@@ -666,7 +666,7 @@ static struct bin_attribute pch_bin_attr = {
        .write = pch_phub_bin_write,
 };
 
-static int __devinit pch_phub_probe(struct pci_dev *pdev,
+static int pch_phub_probe(struct pci_dev *pdev,
                                    const struct pci_device_id *id)
 {
        int retval;
index 79038e9ced0fa0d71f7806075fc136193526cd34..394150df2afe70d690e2d3b1b9e5754a19bc8387 100644 (file)
@@ -324,7 +324,7 @@ static irqreturn_t phantom_isr(int irq, void *data)
  * Init and deinit driver
  */
 
-static unsigned int __devinit phantom_get_free(void)
+static unsigned int phantom_get_free(void)
 {
        unsigned int i;
 
@@ -335,7 +335,7 @@ static unsigned int __devinit phantom_get_free(void)
        return i;
 }
 
-static int __devinit phantom_probe(struct pci_dev *pdev,
+static int phantom_probe(struct pci_dev *pdev,
        const struct pci_device_id *pci_id)
 {
        struct phantom_device *pht;
index 3c5d74638eafc1e47e2bda42101824458acc5fcf..e1a898e97f7c0b5fbab3cba9ad0a5cf42731f911 100644 (file)
@@ -796,7 +796,7 @@ static const struct tty_port_operations tty_port_ops = {
  *     0 for success
  *     otherwise, error
  */
-static int __devinit pti_pci_probe(struct pci_dev *pdev,
+static int pti_pci_probe(struct pci_dev *pdev,
                const struct pci_device_id *ent)
 {
        unsigned int a;
index 123ed98eec3e3c1486264e8a0e0ef7dfcedc1909..7850320462fb53f420ad3d3bcdbdce8378d7c86d 100644 (file)
@@ -711,7 +711,7 @@ static void spear13xx_pcie_device_init(struct spear_pcie_gadget_config *config)
        spear_dbi_write_reg(config, PCI_INTERRUPT_LINE, 1, 1);
 }
 
-static int __devinit spear_pcie_gadget_probe(struct platform_device *pdev)
+static int spear_pcie_gadget_probe(struct platform_device *pdev)
 {
        struct resource *res0, *res1;
        unsigned int status = 0;
index 85989ca7ad250c3a5d2b6a410924269271bdffed..1222f86dfda925625033767d936d357f7b8ad02e 100644 (file)
@@ -54,7 +54,7 @@ static const struct attribute_group dac7512_attr_group = {
        .attrs = dac7512_attributes,
 };
 
-static int __devinit dac7512_probe(struct spi_device *spi)
+static int dac7512_probe(struct spi_device *spi)
 {
        int ret;
 
index 09ffb0b705f310a666eea241b8d36d310f26af1f..18bce70b30f20e0366d9f2dfb1f8854960edfc82 100644 (file)
@@ -347,7 +347,7 @@ static int tsl2550_init_client(struct i2c_client *client)
  */
 
 static struct i2c_driver tsl2550_driver;
-static int __devinit tsl2550_probe(struct i2c_client *client,
+static int tsl2550_probe(struct i2c_client *client,
                                   const struct i2c_device_id *id)
 {
        struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);