Commit 0fe763c5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Drivers: misc: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

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

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

Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8d85fce7
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#define CFAG12864BFB_NAME "cfag12864bfb" #define CFAG12864BFB_NAME "cfag12864bfb"
static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = { static struct fb_fix_screeninfo cfag12864bfb_fix = {
.id = "cfag12864b", .id = "cfag12864b",
.type = FB_TYPE_PACKED_PIXELS, .type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_MONO10, .visual = FB_VISUAL_MONO10,
...@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = { ...@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
.accel = FB_ACCEL_NONE, .accel = FB_ACCEL_NONE,
}; };
static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = { static struct fb_var_screeninfo cfag12864bfb_var = {
.xres = CFAG12864B_WIDTH, .xres = CFAG12864B_WIDTH,
.yres = CFAG12864B_HEIGHT, .yres = CFAG12864B_HEIGHT,
.xres_virtual = CFAG12864B_WIDTH, .xres_virtual = CFAG12864B_WIDTH,
...@@ -80,7 +80,7 @@ static struct fb_ops cfag12864bfb_ops = { ...@@ -80,7 +80,7 @@ static struct fb_ops cfag12864bfb_ops = {
.fb_mmap = cfag12864bfb_mmap, .fb_mmap = cfag12864bfb_mmap,
}; };
static int __devinit cfag12864bfb_probe(struct platform_device *device) static int cfag12864bfb_probe(struct platform_device *device)
{ {
int ret = -EINVAL; int ret = -EINVAL;
struct fb_info *info = framebuffer_alloc(0, &device->dev); struct fb_info *info = framebuffer_alloc(0, &device->dev);
...@@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device) ...@@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device)
return ret; return ret;
} }
static int __devexit cfag12864bfb_remove(struct platform_device *device) static int cfag12864bfb_remove(struct platform_device *device)
{ {
struct fb_info *info = platform_get_drvdata(device); struct fb_info *info = platform_get_drvdata(device);
...@@ -128,7 +128,7 @@ static int __devexit cfag12864bfb_remove(struct platform_device *device) ...@@ -128,7 +128,7 @@ static int __devexit cfag12864bfb_remove(struct platform_device *device)
static struct platform_driver cfag12864bfb_driver = { static struct platform_driver cfag12864bfb_driver = {
.probe = cfag12864bfb_probe, .probe = cfag12864bfb_probe,
.remove = __devexit_p(cfag12864bfb_remove), .remove = cfag12864bfb_remove,
.driver = { .driver = {
.name = CFAG12864BFB_NAME, .name = CFAG12864BFB_NAME,
}, },
......
...@@ -52,7 +52,7 @@ static int ocp2scp_remove_devices(struct device *dev, void *c) ...@@ -52,7 +52,7 @@ static int ocp2scp_remove_devices(struct device *dev, void *c)
return 0; return 0;
} }
static int __devinit omap_ocp2scp_probe(struct platform_device *pdev) static int omap_ocp2scp_probe(struct platform_device *pdev)
{ {
int ret; int ret;
unsigned res_cnt, i; unsigned res_cnt, i;
...@@ -116,7 +116,7 @@ static int __devinit omap_ocp2scp_probe(struct platform_device *pdev) ...@@ -116,7 +116,7 @@ static int __devinit omap_ocp2scp_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit omap_ocp2scp_remove(struct platform_device *pdev) static int omap_ocp2scp_remove(struct platform_device *pdev)
{ {
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
device_for_each_child(&pdev->dev, NULL, ocp2scp_remove_devices); device_for_each_child(&pdev->dev, NULL, ocp2scp_remove_devices);
...@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(of, omap_ocp2scp_id_table); ...@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(of, omap_ocp2scp_id_table);
static struct platform_driver omap_ocp2scp_driver = { static struct platform_driver omap_ocp2scp_driver = {
.probe = omap_ocp2scp_probe, .probe = omap_ocp2scp_probe,
.remove = __devexit_p(omap_ocp2scp_remove), .remove = omap_ocp2scp_remove,
.driver = { .driver = {
.name = "omap-ocp2scp", .name = "omap-ocp2scp",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -128,7 +128,7 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3) ...@@ -128,7 +128,7 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int __devinit omap4_l3_probe(struct platform_device *pdev) static int omap4_l3_probe(struct platform_device *pdev)
{ {
static struct omap4_l3 *l3; static struct omap4_l3 *l3;
struct resource *res; struct resource *res;
...@@ -219,7 +219,7 @@ static int __devinit omap4_l3_probe(struct platform_device *pdev) ...@@ -219,7 +219,7 @@ static int __devinit omap4_l3_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit omap4_l3_remove(struct platform_device *pdev) static int omap4_l3_remove(struct platform_device *pdev)
{ {
struct omap4_l3 *l3 = platform_get_drvdata(pdev); struct omap4_l3 *l3 = platform_get_drvdata(pdev);
...@@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, l3_noc_match); ...@@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, l3_noc_match);
static struct platform_driver omap4_l3_driver = { static struct platform_driver omap4_l3_driver = {
.probe = omap4_l3_probe, .probe = omap4_l3_probe,
.remove = __devexit_p(omap4_l3_remove), .remove = omap4_l3_remove,
.driver = { .driver = {
.name = "omap_l3_noc", .name = "omap_l3_noc",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -557,7 +557,7 @@ static irqreturn_t gdrom_dma_interrupt(int irq, void *dev_id) ...@@ -557,7 +557,7 @@ static irqreturn_t gdrom_dma_interrupt(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int __devinit gdrom_set_interrupt_handlers(void) static int gdrom_set_interrupt_handlers(void)
{ {
int err; int err;
...@@ -681,7 +681,7 @@ static void gdrom_request(struct request_queue *rq) ...@@ -681,7 +681,7 @@ static void gdrom_request(struct request_queue *rq)
} }
/* Print string identifying GD ROM device */ /* Print string identifying GD ROM device */
static int __devinit gdrom_outputversion(void) static int gdrom_outputversion(void)
{ {
struct gdrom_id *id; struct gdrom_id *id;
char *model_name, *manuf_name, *firmw_ver; char *model_name, *manuf_name, *firmw_ver;
...@@ -715,7 +715,7 @@ static int __devinit gdrom_outputversion(void) ...@@ -715,7 +715,7 @@ static int __devinit gdrom_outputversion(void)
} }
/* set the default mode for DMA transfer */ /* set the default mode for DMA transfer */
static int __devinit gdrom_init_dma_mode(void) static int gdrom_init_dma_mode(void)
{ {
__raw_writeb(0x13, GDROM_ERROR_REG); __raw_writeb(0x13, GDROM_ERROR_REG);
__raw_writeb(0x22, GDROM_INTSEC_REG); __raw_writeb(0x22, GDROM_INTSEC_REG);
...@@ -736,7 +736,7 @@ static int __devinit gdrom_init_dma_mode(void) ...@@ -736,7 +736,7 @@ static int __devinit gdrom_init_dma_mode(void)
return 0; return 0;
} }
static void __devinit probe_gdrom_setupcd(void) static void probe_gdrom_setupcd(void)
{ {
gd.cd_info->ops = &gdrom_ops; gd.cd_info->ops = &gdrom_ops;
gd.cd_info->capacity = 1; gd.cd_info->capacity = 1;
...@@ -745,7 +745,7 @@ static void __devinit probe_gdrom_setupcd(void) ...@@ -745,7 +745,7 @@ static void __devinit probe_gdrom_setupcd(void)
CDC_SELECT_DISC; CDC_SELECT_DISC;
} }
static void __devinit probe_gdrom_setupdisk(void) static void probe_gdrom_setupdisk(void)
{ {
gd.disk->major = gdrom_major; gd.disk->major = gdrom_major;
gd.disk->first_minor = 1; gd.disk->first_minor = 1;
...@@ -753,7 +753,7 @@ static void __devinit probe_gdrom_setupdisk(void) ...@@ -753,7 +753,7 @@ static void __devinit probe_gdrom_setupdisk(void)
strcpy(gd.disk->disk_name, GDROM_DEV_NAME); strcpy(gd.disk->disk_name, GDROM_DEV_NAME);
} }
static int __devinit probe_gdrom_setupqueue(void) static int probe_gdrom_setupqueue(void)
{ {
blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR); blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR);
/* using DMA so memory will need to be contiguous */ /* using DMA so memory will need to be contiguous */
...@@ -768,7 +768,7 @@ static int __devinit probe_gdrom_setupqueue(void) ...@@ -768,7 +768,7 @@ static int __devinit probe_gdrom_setupqueue(void)
* register this as a block device and as compliant with the * register this as a block device and as compliant with the
* universal CD Rom driver interface * universal CD Rom driver interface
*/ */
static int __devinit probe_gdrom(struct platform_device *devptr) static int probe_gdrom(struct platform_device *devptr)
{ {
int err; int err;
/* Start the device */ /* Start the device */
...@@ -838,7 +838,7 @@ static int __devinit probe_gdrom(struct platform_device *devptr) ...@@ -838,7 +838,7 @@ static int __devinit probe_gdrom(struct platform_device *devptr)
return err; return err;
} }
static int __devexit remove_gdrom(struct platform_device *devptr) static int remove_gdrom(struct platform_device *devptr)
{ {
flush_work(&work); flush_work(&work);
blk_cleanup_queue(gd.gdrom_rq); blk_cleanup_queue(gd.gdrom_rq);
...@@ -854,7 +854,7 @@ static int __devexit remove_gdrom(struct platform_device *devptr) ...@@ -854,7 +854,7 @@ static int __devexit remove_gdrom(struct platform_device *devptr)
static struct platform_driver gdrom_driver = { static struct platform_driver gdrom_driver = {
.probe = probe_gdrom, .probe = probe_gdrom,
.remove = __devexit_p(remove_gdrom), .remove = remove_gdrom,
.driver = { .driver = {
.name = GDROM_DEV_NAME, .name = GDROM_DEV_NAME,
}, },
......
...@@ -78,7 +78,7 @@ static struct clk_init_data wm831x_clkout_init = { ...@@ -78,7 +78,7 @@ static struct clk_init_data wm831x_clkout_init = {
.flags = CLK_IS_ROOT, .flags = CLK_IS_ROOT,
}; };
static int __devinit twl6040_clk_probe(struct platform_device *pdev) static int twl6040_clk_probe(struct platform_device *pdev)
{ {
struct twl6040 *twl6040 = dev_get_drvdata(pdev->dev.parent); struct twl6040 *twl6040 = dev_get_drvdata(pdev->dev.parent);
struct twl6040_clk *clkdata; struct twl6040_clk *clkdata;
...@@ -100,7 +100,7 @@ static int __devinit twl6040_clk_probe(struct platform_device *pdev) ...@@ -100,7 +100,7 @@ static int __devinit twl6040_clk_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int __devexit twl6040_clk_remove(struct platform_device *pdev) static int twl6040_clk_remove(struct platform_device *pdev)
{ {
struct twl6040_clk *clkdata = dev_get_drvdata(&pdev->dev); struct twl6040_clk *clkdata = dev_get_drvdata(&pdev->dev);
...@@ -115,7 +115,7 @@ static struct platform_driver twl6040_clk_driver = { ...@@ -115,7 +115,7 @@ static struct platform_driver twl6040_clk_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = twl6040_clk_probe, .probe = twl6040_clk_probe,
.remove = __devexit_p(twl6040_clk_remove), .remove = twl6040_clk_remove,
}; };
module_platform_driver(twl6040_clk_driver); module_platform_driver(twl6040_clk_driver);
......
...@@ -34,7 +34,7 @@ static int ab9540_reg_clks(struct device *dev) ...@@ -34,7 +34,7 @@ static int ab9540_reg_clks(struct device *dev)
return 0; return 0;
} }
static int __devinit abx500_clk_probe(struct platform_device *pdev) static int abx500_clk_probe(struct platform_device *pdev)
{ {
struct ab8500 *parent = dev_get_drvdata(pdev->dev.parent); struct ab8500 *parent = dev_get_drvdata(pdev->dev.parent);
int ret; int ret;
......
...@@ -256,7 +256,7 @@ static struct cn_dev cdev = { ...@@ -256,7 +256,7 @@ static struct cn_dev cdev = {
.input = cn_rx_skb, .input = cn_rx_skb,
}; };
static int __devinit cn_init(void) static int cn_init(void)
{ {
struct cn_dev *dev = &cdev; struct cn_dev *dev = &cdev;
struct netlink_kernel_cfg cfg = { struct netlink_kernel_cfg cfg = {
...@@ -281,7 +281,7 @@ static int __devinit cn_init(void) ...@@ -281,7 +281,7 @@ static int __devinit cn_init(void)
return 0; return 0;
} }
static void __devexit cn_fini(void) static void cn_fini(void)
{ {
struct cn_dev *dev = &cdev; struct cn_dev *dev = &cdev;
......
...@@ -980,7 +980,7 @@ static int exynos4_busfreq_pm_notifier_event(struct notifier_block *this, ...@@ -980,7 +980,7 @@ static int exynos4_busfreq_pm_notifier_event(struct notifier_block *this,
return NOTIFY_DONE; return NOTIFY_DONE;
} }
static __devinit int exynos4_busfreq_probe(struct platform_device *pdev) static int exynos4_busfreq_probe(struct platform_device *pdev)
{ {
struct busfreq_data *data; struct busfreq_data *data;
struct opp *opp; struct opp *opp;
...@@ -1056,7 +1056,7 @@ static __devinit int exynos4_busfreq_probe(struct platform_device *pdev) ...@@ -1056,7 +1056,7 @@ static __devinit int exynos4_busfreq_probe(struct platform_device *pdev)
return 0; return 0;
} }
static __devexit int exynos4_busfreq_remove(struct platform_device *pdev) static int exynos4_busfreq_remove(struct platform_device *pdev)
{ {
struct busfreq_data *data = platform_get_drvdata(pdev); struct busfreq_data *data = platform_get_drvdata(pdev);
...@@ -1087,7 +1087,7 @@ static const struct platform_device_id exynos4_busfreq_id[] = { ...@@ -1087,7 +1087,7 @@ static const struct platform_device_id exynos4_busfreq_id[] = {
static struct platform_driver exynos4_busfreq_driver = { static struct platform_driver exynos4_busfreq_driver = {
.probe = exynos4_busfreq_probe, .probe = exynos4_busfreq_probe,
.remove = __devexit_p(exynos4_busfreq_remove), .remove = exynos4_busfreq_remove,
.id_table = exynos4_busfreq_id, .id_table = exynos4_busfreq_id,
.driver = { .driver = {
.name = "exynos4-busfreq", .name = "exynos4-busfreq",
......
...@@ -537,7 +537,7 @@ static struct attribute_group dcdbas_attr_group = { ...@@ -537,7 +537,7 @@ static struct attribute_group dcdbas_attr_group = {
.attrs = dcdbas_dev_attrs, .attrs = dcdbas_dev_attrs,
}; };
static int __devinit dcdbas_probe(struct platform_device *dev) static int dcdbas_probe(struct platform_device *dev)
{ {
int i, error; int i, error;
...@@ -575,7 +575,7 @@ static int __devinit dcdbas_probe(struct platform_device *dev) ...@@ -575,7 +575,7 @@ static int __devinit dcdbas_probe(struct platform_device *dev)
return 0; return 0;
} }
static int __devexit dcdbas_remove(struct platform_device *dev) static int dcdbas_remove(struct platform_device *dev)
{ {
int i; int i;
...@@ -593,7 +593,7 @@ static struct platform_driver dcdbas_driver = { ...@@ -593,7 +593,7 @@ static struct platform_driver dcdbas_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = dcdbas_probe, .probe = dcdbas_probe,
.remove = __devexit_p(dcdbas_remove), .remove = dcdbas_remove,
}; };
/** /**
......
...@@ -126,7 +126,7 @@ static int da9055_gpio_to_irq(struct gpio_chip *gc, u32 offset) ...@@ -126,7 +126,7 @@ static int da9055_gpio_to_irq(struct gpio_chip *gc, u32 offset)
DA9055_IRQ_GPI0 + offset); DA9055_IRQ_GPI0 + offset);
} }
static struct gpio_chip reference_gp __devinitdata = { static struct gpio_chip reference_gp = {
.label = "da9055-gpio", .label = "da9055-gpio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.get = da9055_gpio_get, .get = da9055_gpio_get,
...@@ -139,7 +139,7 @@ static struct gpio_chip reference_gp __devinitdata = { ...@@ -139,7 +139,7 @@ static struct gpio_chip reference_gp __devinitdata = {
.base = -1, .base = -1,
}; };
static int __devinit da9055_gpio_probe(struct platform_device *pdev) static int da9055_gpio_probe(struct platform_device *pdev)
{ {
struct da9055_gpio *gpio; struct da9055_gpio *gpio;
struct da9055_pdata *pdata; struct da9055_pdata *pdata;
...@@ -170,7 +170,7 @@ static int __devinit da9055_gpio_probe(struct platform_device *pdev) ...@@ -170,7 +170,7 @@ static int __devinit da9055_gpio_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit da9055_gpio_remove(struct platform_device *pdev) static int da9055_gpio_remove(struct platform_device *pdev)
{ {
struct da9055_gpio *gpio = platform_get_drvdata(pdev); struct da9055_gpio *gpio = platform_get_drvdata(pdev);
...@@ -179,7 +179,7 @@ static int __devexit da9055_gpio_remove(struct platform_device *pdev) ...@@ -179,7 +179,7 @@ static int __devexit da9055_gpio_remove(struct platform_device *pdev)
static struct platform_driver da9055_gpio_driver = { static struct platform_driver da9055_gpio_driver = {
.probe = da9055_gpio_probe, .probe = da9055_gpio_probe,
.remove = __devexit_p(da9055_gpio_remove), .remove = da9055_gpio_remove,
.driver = { .driver = {
.name = "da9055-gpio", .name = "da9055-gpio",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -319,7 +319,7 @@ static void ts5500_disable_irq(struct ts5500_priv *priv) ...@@ -319,7 +319,7 @@ static void ts5500_disable_irq(struct ts5500_priv *priv)
spin_unlock_irqrestore(&priv->lock, flags); spin_unlock_irqrestore(&priv->lock, flags);
} }
static int __devinit ts5500_dio_probe(struct platform_device *pdev) static int ts5500_dio_probe(struct platform_device *pdev)
{ {
enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data; enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data;
struct ts5500_dio_platform_data *pdata = pdev->dev.platform_data; struct ts5500_dio_platform_data *pdata = pdev->dev.platform_data;
...@@ -432,7 +432,7 @@ static int __devinit ts5500_dio_probe(struct platform_device *pdev) ...@@ -432,7 +432,7 @@ static int __devinit ts5500_dio_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit ts5500_dio_remove(struct platform_device *pdev) static int ts5500_dio_remove(struct platform_device *pdev)
{ {
struct ts5500_priv *priv = platform_get_drvdata(pdev); struct ts5500_priv *priv = platform_get_drvdata(pdev);
...@@ -455,7 +455,7 @@ static struct platform_driver ts5500_dio_driver = { ...@@ -455,7 +455,7 @@ static struct platform_driver ts5500_dio_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = ts5500_dio_probe, .probe = ts5500_dio_probe,
.remove = __devexit_p(ts5500_dio_remove), .remove = ts5500_dio_remove,
.id_table = ts5500_dio_ids, .id_table = ts5500_dio_ids,
}; };
......
...@@ -400,7 +400,7 @@ static int vprbrd_gpiob_direction_output(struct gpio_chip *chip, ...@@ -400,7 +400,7 @@ static int vprbrd_gpiob_direction_output(struct gpio_chip *chip,
/* ----- end of gpio b chip ---------------------------------------------- */ /* ----- end of gpio b chip ---------------------------------------------- */
static int __devinit vprbrd_gpio_probe(struct platform_device *pdev) static int vprbrd_gpio_probe(struct platform_device *pdev)
{ {
struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent);
struct vprbrd_gpio *vb_gpio; struct vprbrd_gpio *vb_gpio;
...@@ -456,7 +456,7 @@ static int __devinit vprbrd_gpio_probe(struct platform_device *pdev) ...@@ -456,7 +456,7 @@ static int __devinit vprbrd_gpio_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit vprbrd_gpio_remove(struct platform_device *pdev) static int vprbrd_gpio_remove(struct platform_device *pdev)
{ {
struct vprbrd_gpio *vb_gpio = platform_get_drvdata(pdev); struct vprbrd_gpio *vb_gpio = platform_get_drvdata(pdev);
int ret; int ret;
...@@ -472,7 +472,7 @@ static struct platform_driver vprbrd_gpio_driver = { ...@@ -472,7 +472,7 @@ static struct platform_driver vprbrd_gpio_driver = {
.driver.name = "viperboard-gpio", .driver.name = "viperboard-gpio",
.driver.owner = THIS_MODULE, .driver.owner = THIS_MODULE,
.probe = vprbrd_gpio_probe, .probe = vprbrd_gpio_probe,
.remove = __devexit_p(vprbrd_gpio_remove), .remove = vprbrd_gpio_remove,
}; };
static int __init vprbrd_gpio_init(void) static int __init vprbrd_gpio_init(void)
......
...@@ -731,7 +731,7 @@ static struct hid_ll_driver i2c_hid_ll_driver = { ...@@ -731,7 +731,7 @@ static struct hid_ll_driver i2c_hid_ll_driver = {
.hidinput_input_event = i2c_hid_hidinput_input_event, .hidinput_input_event = i2c_hid_hidinput_input_event,
}; };
static int __devinit i2c_hid_init_irq(struct i2c_client *client) static int i2c_hid_init_irq(struct i2c_client *client)
{ {
struct i2c_hid *ihid = i2c_get_clientdata(client); struct i2c_hid *ihid = i2c_get_clientdata(client);
int ret; int ret;
...@@ -753,7 +753,7 @@ static int __devinit i2c_hid_init_irq(struct i2c_client *client) ...@@ -753,7 +753,7 @@ static int __devinit i2c_hid_init_irq(struct i2c_client *client)
return 0; return 0;
} }
static int __devinit i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid) static int i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid)
{ {
struct i2c_client *client = ihid->client; struct i2c_client *client = ihid->client;
struct i2c_hid_desc *hdesc = &ihid->hdesc; struct i2c_hid_desc *hdesc = &ihid->hdesc;
...@@ -810,8 +810,8 @@ static int __devinit i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid) ...@@ -810,8 +810,8 @@ static int __devinit i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid)
return 0; return 0;
} }
static int __devinit i2c_hid_probe(struct i2c_client *client, static int i2c_hid_probe(struct i2c_client *client,
const struct i2c_device_id *dev_id) const struct i2c_device_id *dev_id)
{ {
int ret; int ret;
struct i2c_hid *ihid; struct i2c_hid *ihid;
...@@ -902,7 +902,7 @@ static int __devinit i2c_hid_probe(struct i2c_client *client, ...@@ -902,7 +902,7 @@ static int __devinit i2c_hid_probe(struct i2c_client *client,
return ret; return ret;
} }
static int __devexit i2c_hid_remove(struct i2c_client *client) static int i2c_hid_remove(struct i2c_client *client)
{ {
struct i2c_hid *ihid = i2c_get_clientdata(client); struct i2c_hid *ihid = i2c_get_clientdata(client);
struct hid_device *hid; struct hid_device *hid;
...@@ -967,7 +967,7 @@ static struct i2c_driver i2c_hid_driver = { ...@@ -967,7 +967,7 @@ static struct i2c_driver i2c_hid_driver = {
}, },
.probe = i2c_hid_probe, .probe = i2c_hid_probe,
.remove = __devexit_p(i2c_hid_remove), .remove = i2c_hid_remove,
.id_table = i2c_hid_id_table, .id_table = i2c_hid_id_table,
}; };
......
...@@ -675,7 +675,7 @@ static const struct file_operations hsc_fops = { ...@@ -675,7 +675,7 @@ static const struct file_operations hsc_fops = {
.release = hsc_release, .release = hsc_release,
}; };
static void __devinit hsc_channel_init(struct hsc_channel *channel) static void hsc_channel_init(struct hsc_channel *channel)
{ {
init_waitqueue_head(&channel->rx_wait); init_waitqueue_head(&channel->rx_wait);
init_waitqueue_head(&channel->tx_wait); init_waitqueue_head(&channel->tx_wait);
...@@ -685,7 +685,7 @@ static void __devinit hsc_channel_init(struct hsc_channel *channel) ...@@ -685,7 +685,7 @@ static void __devinit hsc_channel_init(struct hsc_channel *channel)
INIT_LIST_HEAD(&channel->tx_msgs_queue); INIT_LIST_HEAD(&channel->tx_msgs_queue);
} }
static int __devinit hsc_probe(struct device *dev) static int hsc_probe(struct device *dev)
{ {
const char devname[] = "hsi_char"; const char devname[] = "hsi_char";
struct hsc_client_data *cl_data; struct hsc_client_data *cl_data;
...@@ -744,7 +744,7 @@ static int __devinit hsc_probe(struct device *dev) ...@@ -744,7 +744,7 @@ static int __devinit hsc_probe(struct device *dev)
return ret; return ret;
} }
static int __devexit hsc_remove(struct device *dev) static int hsc_remove(struct device *dev)
{ {
struct hsi_client *cl = to_hsi_client(dev); struct hsi_client *cl = to_hsi_client(dev);
struct hsc_client_data *cl_data = hsi_client_drvdata(cl); struct hsc_client_data *cl_data = hsi_client_drvdata(cl);
...@@ -763,7 +763,7 @@ static struct hsi_client_driver hsc_driver = { ...@@ -763,7 +763,7 @@ static struct hsi_client_driver hsc_driver = {
.name = "hsi_char", .name = "hsi_char",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.probe = hsc_probe, .probe = hsc_probe,
.remove = __devexit_p(hsc_remove), .remove = hsc_remove,
}, },
}; };
......
...@@ -196,7 +196,7 @@ static int vexpress_hwmon_probe(struct platform_device *pdev) ...@@ -196,7 +196,7 @@ static int vexpress_hwmon_probe(struct platform_device *pdev)
return err; return err;
} }
static int __devexit vexpress_hwmon_remove(struct platform_device *pdev) static int vexpress_hwmon_remove(struct platform_device *pdev)
{ {
struct vexpress_hwmon_data *data = platform_get_drvdata(pdev); struct vexpress_hwmon_data *data = platform_get_drvdata(pdev);
const struct of_device_id *match; const struct of_device_id *match;
...@@ -213,7 +213,7 @@ static int __devexit vexpress_hwmon_remove(struct platform_device *pdev) ...@@ -213,7 +213,7 @@ static int __devexit vexpress_hwmon_remove(struct platform_device *pdev)
static struct platform_driver vexpress_hwmon_driver = { static struct platform_driver vexpress_hwmon_driver = {
.probe = vexpress_hwmon_probe, .probe = vexpress_hwmon_probe,
.remove = __devexit_p(vexpress_hwmon_remove), .remove = vexpress_hwmon_remove,
.driver = { .driver = {
.name = DRVNAME, .name = DRVNAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -384,7 +384,7 @@ static const struct i2c_device_id tca8418_id[] = { ...@@ -384,7 +384,7 @@ static const struct i2c_device_id tca8418_id[] = {
MODULE_DEVICE_TABLE(i2c, tca8418_id); MODULE_DEVICE_TABLE(i2c, tca8418_id);
#ifdef CONFIG_OF #ifdef CONFIG_OF
static const struct of_device_id tca8418_dt_ids[] __devinitconst = { static const struct of_device_id tca8418_dt_ids[] = {
{ .compatible = "ti,tca8418", }, { .compatible = "ti,tca8418", },
{ } { }
}; };
......
...@@ -361,8 +361,8 @@ static struct nfc_phy_ops i2c_phy_ops = { ...@@ -361,8 +361,8 @@ static struct nfc_phy_ops i2c_phy_ops = {
.disable = pn544_hci_i2c_disable, .disable = pn544_hci_i2c_disable,
}; };
static int __devinit pn544_hci_i2c_probe(struct i2c_client *client, static int pn544_hci_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct pn544_i2c_phy *phy; struct pn544_i2c_phy *phy;
struct pn544_nfc_platform_data *pdata; struct pn544_nfc_platform_data *pdata;
...@@ -442,7 +442,7 @@ static int __devinit pn544_hci_i2c_probe(struct i2c_client *client, ...@@ -442,7 +442,7 @@ static int __devinit pn544_hci_i2c_probe(struct i2c_client *client,
return r; return r;
} }
static __devexit int pn544_hci_i2c_remove(struct i2c_client *client) static int pn544_hci_i2c_remove(struct i2c_client *client)
{ {
struct pn544_i2c_phy *phy = i2c_get_clientdata(client); struct pn544_i2c_phy *phy = i2c_get_clientdata(client);
struct pn544_nfc_platform_data *pdata = client->dev.platform_data; struct pn544_nfc_platform_data *pdata = client->dev.platform_data;
...@@ -469,7 +469,7 @@ static struct i2c_driver pn544_hci_i2c_driver = { ...@@ -469,7 +469,7 @@ static struct i2c_driver pn544_hci_i2c_driver = {
}, },
.probe = pn544_hci_i2c_probe, .probe = pn544_hci_i2c_probe,
.id_table = pn544_hci_i2c_id_table, .id_table = pn544_hci_i2c_id_table,
.remove = __devexit_p(pn544_hci_i2c_remove), .remove = pn544_hci_i2c_remove,
}; };
static int __init pn544_hci_i2c_init(void) static int __init pn544_hci_i2c_init(void)
......
...@@ -430,7 +430,7 @@ static void dino_choose_irq(struct parisc_device *dev, void *ctrl) ...@@ -430,7 +430,7 @@ static void dino_choose_irq(struct parisc_device *dev, void *ctrl)
* Cirrus 6832 Cardbus reports wrong irq on RDI Tadpole PARISC Laptop (deller@gmx.de) * Cirrus 6832 Cardbus reports wrong irq on RDI Tadpole PARISC Laptop (deller@gmx.de)
* (the irqs are off-by-one, not sure yet if this is a cirrus, dino-hardware or dino-driver problem...) * (the irqs are off-by-one, not sure yet if this is a cirrus, dino-hardware or dino-driver problem...)
*/ */
static void __devinit quirk_cirrus_cardbus(struct pci_dev *dev) static void quirk_cirrus_cardbus(struct pci_dev *dev)
{ {
u8 new_irq = dev->irq - 1; u8 new_irq = dev->irq - 1;
printk(KERN_INFO "PCI: Cirrus Cardbus IRQ fixup for %s, from %d to %d\n", printk(KERN_INFO "PCI: Cirrus Cardbus IRQ fixup for %s, from %d to %d\n",
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/init.h> /* for __init and __devinit */ #include <linux/init.h> /* for __init */
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/slab.h> #include <linux/slab.h>
......
...@@ -196,7 +196,7 @@ static int pps_gpio_remove(struct platform_device *pdev) ...@@ -196,7 +196,7 @@ static int pps_gpio_remove(struct platform_device *pdev)
static struct platform_driver pps_gpio_driver = { static struct platform_driver pps_gpio_driver = {
.probe = pps_gpio_probe, .probe = pps_gpio_probe,
.remove = __devexit_p(pps_gpio_remove), .remove = pps_gpio_remove,
.driver = { .driver = {
.name = PPS_GPIO_NAME, .name = PPS_GPIO_NAME,
.owner = THIS_MODULE .owner = THIS_MODULE
......
...@@ -1185,7 +1185,7 @@ int ps3_lpm_close(void) ...@@ -1185,7 +1185,7 @@ int ps3_lpm_close(void)
} }
EXPORT_SYMBOL_GPL(ps3_lpm_close); EXPORT_SYMBOL_GPL(ps3_lpm_close);
static int __devinit ps3_lpm_probe(struct ps3_system_bus_device *dev) static int ps3_lpm_probe(struct ps3_system_bus_device *dev)
{ {
dev_dbg(&dev->core, " -> %s:%u\n", __func__, __LINE__); dev_dbg(&dev->core, " -> %s:%u\n", __func__, __LINE__);
......
...@@ -706,7 +706,7 @@ static void ps3_sys_manager_work(struct ps3_system_bus_device *dev) ...@@ -706,7 +706,7 @@ static void ps3_sys_manager_work(struct ps3_system_bus_device *dev)
ps3_vuart_read_async(dev, PS3_SM_RX_MSG_LEN_MIN); ps3_vuart_read_async(dev, PS3_SM_RX_MSG_LEN_MIN);
} }
static int __devinit ps3_sys_manager_probe(struct ps3_system_bus_device *dev) static int ps3_sys_manager_probe(struct ps3_system_bus_device *dev)
{ {
int result; int result;
struct ps3_sys_manager_ops ops; struct ps3_sys_manager_ops ops;
......
...@@ -932,7 +932,7 @@ int ps3av_audio_mute(int mute) ...@@ -932,7 +932,7 @@ int ps3av_audio_mute(int mute)
} }
EXPORT_SYMBOL_GPL(ps3av_audio_mute); EXPORT_SYMBOL_GPL(ps3av_audio_mute);
static int __devinit ps3av_probe(struct ps3_system_bus_device *dev) static int ps3av_probe(struct ps3_system_bus_device *dev)
{ {
int res; int res;
int id; int id;
......
...@@ -179,7 +179,7 @@ static struct rproc_ops omap_rproc_ops = { ...@@ -179,7 +179,7 @@ static struct rproc_ops omap_rproc_ops = {
.kick = omap_rproc_kick, .kick = omap_rproc_kick,
}; };
static int __devinit omap_rproc_probe(struct platform_device *pdev) static int omap_rproc_probe(struct platform_device *pdev)
{ {
struct omap_rproc_pdata *pdata = pdev->dev.platform_data; struct omap_rproc_pdata *pdata = pdev->dev.platform_data;
struct omap_rproc *oproc; struct omap_rproc *oproc;
...@@ -213,7 +213,7 @@ static int __devinit omap_rproc_probe(struct platform_device *pdev) ...@@ -213,7 +213,7 @@ static int __devinit omap_rproc_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit omap_rproc_remove(struct platform_device *pdev) static int omap_rproc_remove(struct platform_device *pdev)
{ {
struct rproc *rproc = platform_get_drvdata(pdev); struct rproc *rproc = platform_get_drvdata(pdev);
...@@ -225,7 +225,7 @@ static int __devexit omap_rproc_remove(struct platform_device *pdev) ...@@ -225,7 +225,7 @@ static int __devexit omap_rproc_remove(struct platform_device *pdev)
static struct platform_driver omap_rproc_driver = { static struct platform_driver omap_rproc_driver = {
.probe = omap_rproc_probe, .probe = omap_rproc_probe,
.remove = __devexit_p(omap_rproc_remove), .remove = omap_rproc_remove,
.driver = { .driver = {
.name = "omap-rproc", .name = "omap-rproc",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -1022,7 +1022,7 @@ static int rpmsg_remove_device(struct device *dev, void *data) ...@@ -1022,7 +1022,7 @@ static int rpmsg_remove_device(struct device *dev, void *data)
return 0; return 0;
} }
static void __devexit rpmsg_remove(struct virtio_device *vdev) static void rpmsg_remove(struct virtio_device *vdev)
{ {
struct virtproc_info *vrp = vdev->priv; struct virtproc_info *vrp = vdev->priv;
int ret; int ret;
...@@ -1063,7 +1063,7 @@ static struct virtio_driver virtio_ipc_driver = { ...@@ -1063,7 +1063,7 @@ static struct virtio_driver virtio_ipc_driver = {
.driver.owner = THIS_MODULE, .driver.owner = THIS_MODULE,
.id_table = id_table, .id_table = id_table,
.probe = rpmsg_probe, .probe = rpmsg_probe,
.remove = __devexit_p(rpmsg_remove), .remove = rpmsg_remove,
}; };
static int __init rpmsg_init(void) static int __init rpmsg_init(void)
......
...@@ -165,7 +165,7 @@ static int sh_pfc_gpio_match(struct gpio_chip *gc, void *data) ...@@ -165,7 +165,7 @@ static int sh_pfc_gpio_match(struct gpio_chip *gc, void *data)
return !!strstr(gc->label, data); return !!strstr(gc->label, data);
} }
static int __devinit sh_pfc_gpio_probe(struct platform_device *pdev) static int sh_pfc_gpio_probe(struct platform_device *pdev)
{ {
struct sh_pfc_chip *chip; struct sh_pfc_chip *chip;
struct gpio_chip *gc; struct gpio_chip *gc;
...@@ -184,7 +184,7 @@ static int __devinit sh_pfc_gpio_probe(struct platform_device *pdev) ...@@ -184,7 +184,7 @@ static int __devinit sh_pfc_gpio_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int __devexit sh_pfc_gpio_remove(struct platform_device *pdev) static int sh_pfc_gpio_remove(struct platform_device *pdev)
{ {
struct sh_pfc_chip *chip = platform_get_drvdata(pdev); struct sh_pfc_chip *chip = platform_get_drvdata(pdev);
int ret; int ret;
...@@ -199,7 +199,7 @@ static int __devexit sh_pfc_gpio_remove(struct platform_device *pdev) ...@@ -199,7 +199,7 @@ static int __devexit sh_pfc_gpio_remove(struct platform_device *pdev)
static struct platform_driver sh_pfc_gpio_driver = { static struct platform_driver sh_pfc_gpio_driver = {
.probe = sh_pfc_gpio_probe, .probe = sh_pfc_gpio_probe,
.remove = __devexit_p(sh_pfc_gpio_remove), .remove = sh_pfc_gpio_remove,
.driver = { .driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -328,10 +328,10 @@ static struct pinctrl_desc sh_pfc_pinctrl_desc = { ...@@ -328,10 +328,10 @@ static struct pinctrl_desc sh_pfc_pinctrl_desc = {
.confops = &sh_pfc_pinconf_ops, .confops = &sh_pfc_pinconf_ops,
}; };
static inline void __devinit sh_pfc_map_one_gpio(struct sh_pfc *pfc, static inline void sh_pfc_map_one_gpio(struct sh_pfc *pfc,
struct sh_pfc_pinctrl *pmx, struct sh_pfc_pinctrl *pmx,
struct pinmux_gpio *gpio, struct pinmux_gpio *gpio,
unsigned offset) unsigned offset)
{ {
struct pinmux_data_reg *dummy; struct pinmux_data_reg *dummy;
unsigned long flags; unsigned long flags;
...@@ -351,8 +351,7 @@ static inline void __devinit sh_pfc_map_one_gpio(struct sh_pfc *pfc, ...@@ -351,8 +351,7 @@ static inline void __devinit sh_pfc_map_one_gpio(struct sh_pfc *pfc,
} }
/* pinmux ranges -> pinctrl pin descs */ /* pinmux ranges -> pinctrl pin descs */
static int __devinit sh_pfc_map_gpios(struct sh_pfc *pfc, static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx)
struct sh_pfc_pinctrl *pmx)
{ {
unsigned long flags; unsigned long flags;
int i; int i;
...@@ -396,8 +395,7 @@ static int __devinit sh_pfc_map_gpios(struct sh_pfc *pfc, ...@@ -396,8 +395,7 @@ static int __devinit sh_pfc_map_gpios(struct sh_pfc *pfc,
return 0; return 0;
} }
static int __devinit sh_pfc_map_functions(struct sh_pfc *pfc, static int sh_pfc_map_functions(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx)
struct sh_pfc_pinctrl *pmx)
{ {
unsigned long flags; unsigned long flags;
int i, fn; int i, fn;
...@@ -421,7 +419,7 @@ static int __devinit sh_pfc_map_functions(struct sh_pfc *pfc, ...@@ -421,7 +419,7 @@ static int __devinit sh_pfc_map_functions(struct sh_pfc *pfc,
return 0; return 0;
} }
static int __devinit sh_pfc_pinctrl_probe(struct platform_device *pdev) static int sh_pfc_pinctrl_probe(struct platform_device *pdev)
{ {
struct sh_pfc *pfc; struct sh_pfc *pfc;
int ret; int ret;
...@@ -465,7 +463,7 @@ static int __devinit sh_pfc_pinctrl_probe(struct platform_device *pdev) ...@@ -465,7 +463,7 @@ static int __devinit sh_pfc_pinctrl_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev) static int sh_pfc_pinctrl_remove(struct platform_device *pdev)
{ {
struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev); struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev);
...@@ -482,7 +480,7 @@ static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev) ...@@ -482,7 +480,7 @@ static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev)
static struct platform_driver sh_pfc_pinctrl_driver = { static struct platform_driver sh_pfc_pinctrl_driver = {
.probe = sh_pfc_pinctrl_probe, .probe = sh_pfc_pinctrl_probe,
.remove = __devexit_p(sh_pfc_pinctrl_remove), .remove = sh_pfc_pinctrl_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -575,11 +575,10 @@ void ioc3_unregister_submodule(struct ioc3_submodule *is) ...@@ -575,11 +575,10 @@ void ioc3_unregister_submodule(struct ioc3_submodule *is)
* Device management * * Device management *
*********************/ *********************/
static char * __devinitdata static char *ioc3_class_names[] = { "unknown", "IP27 BaseIO", "IP30 system",
ioc3_class_names[]={"unknown", "IP27 BaseIO", "IP30 system", "MENET 1/2/3", "MENET 1/2/3", "MENET 4", "CADduo", "Altix Serial" };
"MENET 4", "CADduo", "Altix Serial"};
static int __devinit ioc3_class(struct ioc3_driver_data *idd) static int ioc3_class(struct ioc3_driver_data *idd)
{ {
int res = IOC3_CLASS_NONE; int res = IOC3_CLASS_NONE;
/* NIC-based logic */ /* NIC-based logic */
...@@ -602,8 +601,7 @@ static int __devinit ioc3_class(struct ioc3_driver_data *idd) ...@@ -602,8 +601,7 @@ static int __devinit ioc3_class(struct ioc3_driver_data *idd)
return res; return res;
} }
/* Adds a new instance of an IOC3 card */ /* Adds a new instance of an IOC3 card */
static int __devinit static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
{ {
struct ioc3_driver_data *idd; struct ioc3_driver_data *idd;
uint32_t pcmd; uint32_t pcmd;
...@@ -755,7 +753,7 @@ ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) ...@@ -755,7 +753,7 @@ ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
} }
/* Removes a particular instance of an IOC3 card. */ /* Removes a particular instance of an IOC3 card. */
static void __devexit ioc3_remove(struct pci_dev *pdev) static void ioc3_remove(struct pci_dev *pdev)
{ {
int id; int id;
struct ioc3_driver_data *idd; struct ioc3_driver_data *idd;
...@@ -807,7 +805,7 @@ static struct pci_driver ioc3_driver = { ...@@ -807,7 +805,7 @@ static struct pci_driver ioc3_driver = {
.name = "IOC3", .name = "IOC3",
.id_table = ioc3_id_table, .id_table = ioc3_id_table,
.probe = ioc3_probe, .probe = ioc3_probe,
.remove = __devexit_p(ioc3_remove), .remove = ioc3_remove,
}; };
MODULE_DEVICE_TABLE(pci, ioc3_id_table); MODULE_DEVICE_TABLE(pci, ioc3_id_table);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment