Skip to content

Commit

Permalink
Drivers: misc: remove __dev* attributes.
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitdata,
__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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Jan 3, 2013
1 parent 8d85fce commit 0fe763c
Show file tree
Hide file tree
Showing 28 changed files with 88 additions and 92 deletions.
10 changes: 5 additions & 5 deletions drivers/auxdisplay/cfag12864bfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#define CFAG12864BFB_NAME "cfag12864bfb"

static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
static struct fb_fix_screeninfo cfag12864bfb_fix = {
.id = "cfag12864b",
.type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_MONO10,
Expand All @@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
.accel = FB_ACCEL_NONE,
};

static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = {
static struct fb_var_screeninfo cfag12864bfb_var = {
.xres = CFAG12864B_WIDTH,
.yres = CFAG12864B_HEIGHT,
.xres_virtual = CFAG12864B_WIDTH,
Expand Down Expand Up @@ -80,7 +80,7 @@ static struct fb_ops cfag12864bfb_ops = {
.fb_mmap = cfag12864bfb_mmap,
};

static int __devinit cfag12864bfb_probe(struct platform_device *device)
static int cfag12864bfb_probe(struct platform_device *device)
{
int ret = -EINVAL;
struct fb_info *info = framebuffer_alloc(0, &device->dev);
Expand Down Expand Up @@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device)
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);

Expand All @@ -128,7 +128,7 @@ static int __devexit cfag12864bfb_remove(struct platform_device *device)

static struct platform_driver cfag12864bfb_driver = {
.probe = cfag12864bfb_probe,
.remove = __devexit_p(cfag12864bfb_remove),
.remove = cfag12864bfb_remove,
.driver = {
.name = CFAG12864BFB_NAME,
},
Expand Down
6 changes: 3 additions & 3 deletions drivers/bus/omap-ocp2scp.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static int ocp2scp_remove_devices(struct device *dev, void *c)
return 0;
}

static int __devinit omap_ocp2scp_probe(struct platform_device *pdev)
static int omap_ocp2scp_probe(struct platform_device *pdev)
{
int ret;
unsigned res_cnt, i;
Expand Down Expand Up @@ -116,7 +116,7 @@ static int __devinit omap_ocp2scp_probe(struct platform_device *pdev)
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);
device_for_each_child(&pdev->dev, NULL, ocp2scp_remove_devices);
Expand All @@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(of, omap_ocp2scp_id_table);

static struct platform_driver omap_ocp2scp_driver = {
.probe = omap_ocp2scp_probe,
.remove = __devexit_p(omap_ocp2scp_remove),
.remove = omap_ocp2scp_remove,
.driver = {
.name = "omap-ocp2scp",
.owner = THIS_MODULE,
Expand Down
6 changes: 3 additions & 3 deletions drivers/bus/omap_l3_noc.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3)
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;
struct resource *res;
Expand Down Expand Up @@ -219,7 +219,7 @@ static int __devinit omap4_l3_probe(struct platform_device *pdev)
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);

Expand All @@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, l3_noc_match);

static struct platform_driver omap4_l3_driver = {
.probe = omap4_l3_probe,
.remove = __devexit_p(omap4_l3_remove),
.remove = omap4_l3_remove,
.driver = {
.name = "omap_l3_noc",
.owner = THIS_MODULE,
Expand Down
18 changes: 9 additions & 9 deletions drivers/cdrom/gdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ static irqreturn_t gdrom_dma_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}

static int __devinit gdrom_set_interrupt_handlers(void)
static int gdrom_set_interrupt_handlers(void)
{
int err;

Expand Down Expand Up @@ -681,7 +681,7 @@ static void gdrom_request(struct request_queue *rq)
}

/* Print string identifying GD ROM device */
static int __devinit gdrom_outputversion(void)
static int gdrom_outputversion(void)
{
struct gdrom_id *id;
char *model_name, *manuf_name, *firmw_ver;
Expand Down Expand Up @@ -715,7 +715,7 @@ static int __devinit gdrom_outputversion(void)
}

/* 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(0x22, GDROM_INTSEC_REG);
Expand All @@ -736,7 +736,7 @@ static int __devinit gdrom_init_dma_mode(void)
return 0;
}

static void __devinit probe_gdrom_setupcd(void)
static void probe_gdrom_setupcd(void)
{
gd.cd_info->ops = &gdrom_ops;
gd.cd_info->capacity = 1;
Expand All @@ -745,15 +745,15 @@ static void __devinit probe_gdrom_setupcd(void)
CDC_SELECT_DISC;
}

static void __devinit probe_gdrom_setupdisk(void)
static void probe_gdrom_setupdisk(void)
{
gd.disk->major = gdrom_major;
gd.disk->first_minor = 1;
gd.disk->minors = 1;
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);
/* using DMA so memory will need to be contiguous */
Expand All @@ -768,7 +768,7 @@ static int __devinit probe_gdrom_setupqueue(void)
* register this as a block device and as compliant with the
* universal CD Rom driver interface
*/
static int __devinit probe_gdrom(struct platform_device *devptr)
static int probe_gdrom(struct platform_device *devptr)
{
int err;
/* Start the device */
Expand Down Expand Up @@ -838,7 +838,7 @@ static int __devinit probe_gdrom(struct platform_device *devptr)
return err;
}

static int __devexit remove_gdrom(struct platform_device *devptr)
static int remove_gdrom(struct platform_device *devptr)
{
flush_work(&work);
blk_cleanup_queue(gd.gdrom_rq);
Expand All @@ -854,7 +854,7 @@ static int __devexit remove_gdrom(struct platform_device *devptr)

static struct platform_driver gdrom_driver = {
.probe = probe_gdrom,
.remove = __devexit_p(remove_gdrom),
.remove = remove_gdrom,
.driver = {
.name = GDROM_DEV_NAME,
},
Expand Down
6 changes: 3 additions & 3 deletions drivers/clk/clk-twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static struct clk_init_data wm831x_clkout_init = {
.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_clk *clkdata;
Expand All @@ -100,7 +100,7 @@ static int __devinit twl6040_clk_probe(struct platform_device *pdev)
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);

Expand All @@ -115,7 +115,7 @@ static struct platform_driver twl6040_clk_driver = {
.owner = THIS_MODULE,
},
.probe = twl6040_clk_probe,
.remove = __devexit_p(twl6040_clk_remove),
.remove = twl6040_clk_remove,
};

module_platform_driver(twl6040_clk_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/ux500/abx500-clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static int ab9540_reg_clks(struct device *dev)
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);
int ret;
Expand Down
4 changes: 2 additions & 2 deletions drivers/connector/connector.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static struct cn_dev cdev = {
.input = cn_rx_skb,
};

static int __devinit cn_init(void)
static int cn_init(void)
{
struct cn_dev *dev = &cdev;
struct netlink_kernel_cfg cfg = {
Expand All @@ -281,7 +281,7 @@ static int __devinit cn_init(void)
return 0;
}

static void __devexit cn_fini(void)
static void cn_fini(void)
{
struct cn_dev *dev = &cdev;

Expand Down
6 changes: 3 additions & 3 deletions drivers/devfreq/exynos4_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ static int exynos4_busfreq_pm_notifier_event(struct notifier_block *this,
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 opp *opp;
Expand Down Expand Up @@ -1056,7 +1056,7 @@ static __devinit int exynos4_busfreq_probe(struct platform_device *pdev)
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);

Expand Down Expand Up @@ -1087,7 +1087,7 @@ static const struct platform_device_id exynos4_busfreq_id[] = {

static struct platform_driver exynos4_busfreq_driver = {
.probe = exynos4_busfreq_probe,
.remove = __devexit_p(exynos4_busfreq_remove),
.remove = exynos4_busfreq_remove,
.id_table = exynos4_busfreq_id,
.driver = {
.name = "exynos4-busfreq",
Expand Down
6 changes: 3 additions & 3 deletions drivers/firmware/dcdbas.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ static struct attribute_group dcdbas_attr_group = {
.attrs = dcdbas_dev_attrs,
};

static int __devinit dcdbas_probe(struct platform_device *dev)
static int dcdbas_probe(struct platform_device *dev)
{
int i, error;

Expand Down Expand Up @@ -575,7 +575,7 @@ static int __devinit dcdbas_probe(struct platform_device *dev)
return 0;
}

static int __devexit dcdbas_remove(struct platform_device *dev)
static int dcdbas_remove(struct platform_device *dev)
{
int i;

Expand All @@ -593,7 +593,7 @@ static struct platform_driver dcdbas_driver = {
.owner = THIS_MODULE,
},
.probe = dcdbas_probe,
.remove = __devexit_p(dcdbas_remove),
.remove = dcdbas_remove,
};

/**
Expand Down
8 changes: 4 additions & 4 deletions drivers/gpio/gpio-da9055.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static int da9055_gpio_to_irq(struct gpio_chip *gc, u32 offset)
DA9055_IRQ_GPI0 + offset);
}

static struct gpio_chip reference_gp __devinitdata = {
static struct gpio_chip reference_gp = {
.label = "da9055-gpio",
.owner = THIS_MODULE,
.get = da9055_gpio_get,
Expand All @@ -139,7 +139,7 @@ static struct gpio_chip reference_gp __devinitdata = {
.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_pdata *pdata;
Expand Down Expand Up @@ -170,7 +170,7 @@ static int __devinit da9055_gpio_probe(struct platform_device *pdev)
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);

Expand All @@ -179,7 +179,7 @@ static int __devexit da9055_gpio_remove(struct platform_device *pdev)

static struct platform_driver da9055_gpio_driver = {
.probe = da9055_gpio_probe,
.remove = __devexit_p(da9055_gpio_remove),
.remove = da9055_gpio_remove,
.driver = {
.name = "da9055-gpio",
.owner = THIS_MODULE,
Expand Down
6 changes: 3 additions & 3 deletions drivers/gpio/gpio-ts5500.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static void ts5500_disable_irq(struct ts5500_priv *priv)
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;
struct ts5500_dio_platform_data *pdata = pdev->dev.platform_data;
Expand Down Expand Up @@ -432,7 +432,7 @@ static int __devinit ts5500_dio_probe(struct platform_device *pdev)
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);

Expand All @@ -455,7 +455,7 @@ static struct platform_driver ts5500_dio_driver = {
.owner = THIS_MODULE,
},
.probe = ts5500_dio_probe,
.remove = __devexit_p(ts5500_dio_remove),
.remove = ts5500_dio_remove,
.id_table = ts5500_dio_ids,
};

Expand Down
6 changes: 3 additions & 3 deletions drivers/gpio/gpio-viperboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static int vprbrd_gpiob_direction_output(struct gpio_chip *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_gpio *vb_gpio;
Expand Down Expand Up @@ -456,7 +456,7 @@ static int __devinit vprbrd_gpio_probe(struct platform_device *pdev)
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);
int ret;
Expand All @@ -472,7 +472,7 @@ static struct platform_driver vprbrd_gpio_driver = {
.driver.name = "viperboard-gpio",
.driver.owner = THIS_MODULE,
.probe = vprbrd_gpio_probe,
.remove = __devexit_p(vprbrd_gpio_remove),
.remove = vprbrd_gpio_remove,
};

static int __init vprbrd_gpio_init(void)
Expand Down
Loading

0 comments on commit 0fe763c

Please sign in to comment.