Commit 56550d94 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Drivers: gpu: 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, 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>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e6d9abe
...@@ -60,8 +60,7 @@ static DEFINE_PCI_DEVICE_TABLE(pciidlist) = { ...@@ -60,8 +60,7 @@ static DEFINE_PCI_DEVICE_TABLE(pciidlist) = {
MODULE_DEVICE_TABLE(pci, pciidlist); MODULE_DEVICE_TABLE(pci, pciidlist);
static int __devinit static int ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ {
return drm_get_pci_dev(pdev, ent, &driver); return drm_get_pci_dev(pdev, ent, &driver);
} }
......
...@@ -56,8 +56,8 @@ static int cirrus_kick_out_firmware_fb(struct pci_dev *pdev) ...@@ -56,8 +56,8 @@ static int cirrus_kick_out_firmware_fb(struct pci_dev *pdev)
return 0; return 0;
} }
static int __devinit static int cirrus_pci_probe(struct pci_dev *pdev,
cirrus_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
int ret; int ret;
......
...@@ -66,6 +66,6 @@ struct i2c_driver ddc_driver = { ...@@ -66,6 +66,6 @@ struct i2c_driver ddc_driver = {
}, },
.id_table = ddc_idtable, .id_table = ddc_idtable,
.probe = s5p_ddc_probe, .probe = s5p_ddc_probe,
.remove = __devexit_p(s5p_ddc_remove), .remove = s5p_ddc_remove,
.command = NULL, .command = NULL,
}; };
...@@ -325,7 +325,7 @@ static int exynos_drm_platform_remove(struct platform_device *pdev) ...@@ -325,7 +325,7 @@ static int exynos_drm_platform_remove(struct platform_device *pdev)
static struct platform_driver exynos_drm_platform_driver = { static struct platform_driver exynos_drm_platform_driver = {
.probe = exynos_drm_platform_probe, .probe = exynos_drm_platform_probe,
.remove = __devexit_p(exynos_drm_platform_remove), .remove = exynos_drm_platform_remove,
.driver = { .driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "exynos-drm", .name = "exynos-drm",
......
...@@ -1714,7 +1714,7 @@ static void fimc_ippdrv_stop(struct device *dev, enum drm_exynos_ipp_cmd cmd) ...@@ -1714,7 +1714,7 @@ static void fimc_ippdrv_stop(struct device *dev, enum drm_exynos_ipp_cmd cmd)
fimc_write(cfg, EXYNOS_CIGCTRL); fimc_write(cfg, EXYNOS_CIGCTRL);
} }
static int __devinit fimc_probe(struct platform_device *pdev) static int fimc_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct fimc_context *ctx; struct fimc_context *ctx;
...@@ -1891,7 +1891,7 @@ static int __devinit fimc_probe(struct platform_device *pdev) ...@@ -1891,7 +1891,7 @@ static int __devinit fimc_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit fimc_remove(struct platform_device *pdev) static int fimc_remove(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct fimc_context *ctx = get_fimc_context(dev); struct fimc_context *ctx = get_fimc_context(dev);
...@@ -1990,7 +1990,7 @@ static const struct dev_pm_ops fimc_pm_ops = { ...@@ -1990,7 +1990,7 @@ static const struct dev_pm_ops fimc_pm_ops = {
struct platform_driver fimc_driver = { struct platform_driver fimc_driver = {
.probe = fimc_probe, .probe = fimc_probe,
.remove = __devexit_p(fimc_remove), .remove = fimc_remove,
.id_table = fimc_driver_ids, .id_table = fimc_driver_ids,
.driver = { .driver = {
.name = "exynos-drm-fimc", .name = "exynos-drm-fimc",
......
...@@ -898,7 +898,7 @@ static int fimd_activate(struct fimd_context *ctx, bool enable) ...@@ -898,7 +898,7 @@ static int fimd_activate(struct fimd_context *ctx, bool enable)
return 0; return 0;
} }
static int __devinit fimd_probe(struct platform_device *pdev) static int fimd_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct fimd_context *ctx; struct fimd_context *ctx;
...@@ -997,7 +997,7 @@ static int __devinit fimd_probe(struct platform_device *pdev) ...@@ -997,7 +997,7 @@ static int __devinit fimd_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int __devexit fimd_remove(struct platform_device *pdev) static int fimd_remove(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct fimd_context *ctx = platform_get_drvdata(pdev); struct fimd_context *ctx = platform_get_drvdata(pdev);
...@@ -1105,7 +1105,7 @@ static const struct dev_pm_ops fimd_pm_ops = { ...@@ -1105,7 +1105,7 @@ static const struct dev_pm_ops fimd_pm_ops = {
struct platform_driver fimd_driver = { struct platform_driver fimd_driver = {
.probe = fimd_probe, .probe = fimd_probe,
.remove = __devexit_p(fimd_remove), .remove = fimd_remove,
.id_table = fimd_driver_ids, .id_table = fimd_driver_ids,
.driver = { .driver = {
.name = "exynos4-fb", .name = "exynos4-fb",
......
...@@ -1090,7 +1090,7 @@ static void g2d_close(struct drm_device *drm_dev, struct device *dev, ...@@ -1090,7 +1090,7 @@ static void g2d_close(struct drm_device *drm_dev, struct device *dev,
kfree(file_priv->g2d_priv); kfree(file_priv->g2d_priv);
} }
static int __devinit g2d_probe(struct platform_device *pdev) static int g2d_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct resource *res; struct resource *res;
...@@ -1188,7 +1188,7 @@ static int __devinit g2d_probe(struct platform_device *pdev) ...@@ -1188,7 +1188,7 @@ static int __devinit g2d_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit g2d_remove(struct platform_device *pdev) static int g2d_remove(struct platform_device *pdev)
{ {
struct g2d_data *g2d = platform_get_drvdata(pdev); struct g2d_data *g2d = platform_get_drvdata(pdev);
...@@ -1242,7 +1242,7 @@ static SIMPLE_DEV_PM_OPS(g2d_pm_ops, g2d_suspend, g2d_resume); ...@@ -1242,7 +1242,7 @@ static SIMPLE_DEV_PM_OPS(g2d_pm_ops, g2d_suspend, g2d_resume);
struct platform_driver g2d_driver = { struct platform_driver g2d_driver = {
.probe = g2d_probe, .probe = g2d_probe,
.remove = __devexit_p(g2d_remove), .remove = g2d_remove,
.driver = { .driver = {
.name = "s5p-g2d", .name = "s5p-g2d",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -1683,7 +1683,7 @@ static void gsc_ippdrv_stop(struct device *dev, enum drm_exynos_ipp_cmd cmd) ...@@ -1683,7 +1683,7 @@ static void gsc_ippdrv_stop(struct device *dev, enum drm_exynos_ipp_cmd cmd)
gsc_write(cfg, GSC_ENABLE); gsc_write(cfg, GSC_ENABLE);
} }
static int __devinit gsc_probe(struct platform_device *pdev) static int gsc_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct gsc_context *ctx; struct gsc_context *ctx;
...@@ -1784,7 +1784,7 @@ static int __devinit gsc_probe(struct platform_device *pdev) ...@@ -1784,7 +1784,7 @@ static int __devinit gsc_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit gsc_remove(struct platform_device *pdev) static int gsc_remove(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct gsc_context *ctx = get_gsc_context(dev); struct gsc_context *ctx = get_gsc_context(dev);
...@@ -1860,7 +1860,7 @@ static const struct dev_pm_ops gsc_pm_ops = { ...@@ -1860,7 +1860,7 @@ static const struct dev_pm_ops gsc_pm_ops = {
struct platform_driver gsc_driver = { struct platform_driver gsc_driver = {
.probe = gsc_probe, .probe = gsc_probe,
.remove = __devexit_p(gsc_remove), .remove = gsc_remove,
.driver = { .driver = {
.name = "exynos-drm-gsc", .name = "exynos-drm-gsc",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -385,7 +385,7 @@ static void hdmi_subdrv_remove(struct drm_device *drm_dev, struct device *dev) ...@@ -385,7 +385,7 @@ static void hdmi_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
mixer_ops->iommu_on(ctx->mixer_ctx->ctx, false); mixer_ops->iommu_on(ctx->mixer_ctx->ctx, false);
} }
static int __devinit exynos_drm_hdmi_probe(struct platform_device *pdev) static int exynos_drm_hdmi_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct exynos_drm_subdrv *subdrv; struct exynos_drm_subdrv *subdrv;
...@@ -413,7 +413,7 @@ static int __devinit exynos_drm_hdmi_probe(struct platform_device *pdev) ...@@ -413,7 +413,7 @@ static int __devinit exynos_drm_hdmi_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int __devexit exynos_drm_hdmi_remove(struct platform_device *pdev) static int exynos_drm_hdmi_remove(struct platform_device *pdev)
{ {
struct drm_hdmi_context *ctx = platform_get_drvdata(pdev); struct drm_hdmi_context *ctx = platform_get_drvdata(pdev);
...@@ -426,7 +426,7 @@ static int __devexit exynos_drm_hdmi_remove(struct platform_device *pdev) ...@@ -426,7 +426,7 @@ static int __devexit exynos_drm_hdmi_remove(struct platform_device *pdev)
struct platform_driver exynos_drm_common_hdmi_driver = { struct platform_driver exynos_drm_common_hdmi_driver = {
.probe = exynos_drm_hdmi_probe, .probe = exynos_drm_hdmi_probe,
.remove = __devexit_p(exynos_drm_hdmi_remove), .remove = exynos_drm_hdmi_remove,
.driver = { .driver = {
.name = "exynos-drm-hdmi", .name = "exynos-drm-hdmi",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -1888,7 +1888,7 @@ static void ipp_subdrv_close(struct drm_device *drm_dev, struct device *dev, ...@@ -1888,7 +1888,7 @@ static void ipp_subdrv_close(struct drm_device *drm_dev, struct device *dev,
return; return;
} }
static int __devinit ipp_probe(struct platform_device *pdev) static int ipp_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct ipp_context *ctx; struct ipp_context *ctx;
...@@ -1963,7 +1963,7 @@ static int __devinit ipp_probe(struct platform_device *pdev) ...@@ -1963,7 +1963,7 @@ static int __devinit ipp_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit ipp_remove(struct platform_device *pdev) static int ipp_remove(struct platform_device *pdev)
{ {
struct ipp_context *ctx = platform_get_drvdata(pdev); struct ipp_context *ctx = platform_get_drvdata(pdev);
...@@ -2050,7 +2050,7 @@ static const struct dev_pm_ops ipp_pm_ops = { ...@@ -2050,7 +2050,7 @@ static const struct dev_pm_ops ipp_pm_ops = {
struct platform_driver ipp_driver = { struct platform_driver ipp_driver = {
.probe = ipp_probe, .probe = ipp_probe,
.remove = __devexit_p(ipp_remove), .remove = ipp_remove,
.driver = { .driver = {
.name = "exynos-drm-ipp", .name = "exynos-drm-ipp",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -638,7 +638,7 @@ static int rotator_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd) ...@@ -638,7 +638,7 @@ static int rotator_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd)
return 0; return 0;
} }
static int __devinit rotator_probe(struct platform_device *pdev) static int rotator_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct rot_context *rot; struct rot_context *rot;
...@@ -730,7 +730,7 @@ static int __devinit rotator_probe(struct platform_device *pdev) ...@@ -730,7 +730,7 @@ static int __devinit rotator_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit rotator_remove(struct platform_device *pdev) static int rotator_remove(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct rot_context *rot = dev_get_drvdata(dev); struct rot_context *rot = dev_get_drvdata(dev);
...@@ -845,7 +845,7 @@ static const struct dev_pm_ops rotator_pm_ops = { ...@@ -845,7 +845,7 @@ static const struct dev_pm_ops rotator_pm_ops = {
struct platform_driver rotator_driver = { struct platform_driver rotator_driver = {
.probe = rotator_probe, .probe = rotator_probe,
.remove = __devexit_p(rotator_remove), .remove = rotator_remove,
.id_table = rotator_driver_ids, .id_table = rotator_driver_ids,
.driver = { .driver = {
.name = "exynos-rot", .name = "exynos-rot",
......
...@@ -609,7 +609,7 @@ int vidi_connection_ioctl(struct drm_device *drm_dev, void *data, ...@@ -609,7 +609,7 @@ int vidi_connection_ioctl(struct drm_device *drm_dev, void *data,
return 0; return 0;
} }
static int __devinit vidi_probe(struct platform_device *pdev) static int vidi_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct vidi_context *ctx; struct vidi_context *ctx;
...@@ -645,7 +645,7 @@ static int __devinit vidi_probe(struct platform_device *pdev) ...@@ -645,7 +645,7 @@ static int __devinit vidi_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int __devexit vidi_remove(struct platform_device *pdev) static int vidi_remove(struct platform_device *pdev)
{ {
struct vidi_context *ctx = platform_get_drvdata(pdev); struct vidi_context *ctx = platform_get_drvdata(pdev);
...@@ -683,7 +683,7 @@ static const struct dev_pm_ops vidi_pm_ops = { ...@@ -683,7 +683,7 @@ static const struct dev_pm_ops vidi_pm_ops = {
struct platform_driver vidi_driver = { struct platform_driver vidi_driver = {
.probe = vidi_probe, .probe = vidi_probe,
.remove = __devexit_p(vidi_remove), .remove = vidi_remove,
.driver = { .driver = {
.name = "exynos-drm-vidi", .name = "exynos-drm-vidi",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -2305,7 +2305,7 @@ static irqreturn_t hdmi_internal_irq_thread(int irq, void *arg) ...@@ -2305,7 +2305,7 @@ static irqreturn_t hdmi_internal_irq_thread(int irq, void *arg)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int __devinit hdmi_resources_init(struct hdmi_context *hdata) static int hdmi_resources_init(struct hdmi_context *hdata)
{ {
struct device *dev = hdata->dev; struct device *dev = hdata->dev;
struct hdmi_resources *res = &hdata->res; struct hdmi_resources *res = &hdata->res;
...@@ -2451,7 +2451,7 @@ static struct of_device_id hdmi_match_types[] = { ...@@ -2451,7 +2451,7 @@ static struct of_device_id hdmi_match_types[] = {
}; };
#endif #endif
static int __devinit hdmi_probe(struct platform_device *pdev) static int hdmi_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct exynos_drm_hdmi_context *drm_hdmi_ctx; struct exynos_drm_hdmi_context *drm_hdmi_ctx;
...@@ -2607,7 +2607,7 @@ static int __devinit hdmi_probe(struct platform_device *pdev) ...@@ -2607,7 +2607,7 @@ static int __devinit hdmi_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __devexit hdmi_remove(struct platform_device *pdev) static int hdmi_remove(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct exynos_drm_hdmi_context *ctx = platform_get_drvdata(pdev); struct exynos_drm_hdmi_context *ctx = platform_get_drvdata(pdev);
...@@ -2708,7 +2708,7 @@ static const struct dev_pm_ops hdmi_pm_ops = { ...@@ -2708,7 +2708,7 @@ static const struct dev_pm_ops hdmi_pm_ops = {
struct platform_driver hdmi_driver = { struct platform_driver hdmi_driver = {
.probe = hdmi_probe, .probe = hdmi_probe,
.remove = __devexit_p(hdmi_remove), .remove = hdmi_remove,
.id_table = hdmi_driver_types, .id_table = hdmi_driver_types,
.driver = { .driver = {
.name = "exynos-hdmi", .name = "exynos-hdmi",
......
...@@ -64,7 +64,7 @@ struct i2c_driver hdmiphy_driver = { ...@@ -64,7 +64,7 @@ struct i2c_driver hdmiphy_driver = {
}, },
.id_table = hdmiphy_id, .id_table = hdmiphy_id,
.probe = hdmiphy_probe, .probe = hdmiphy_probe,
.remove = __devexit_p(hdmiphy_remove), .remove = hdmiphy_remove,
.command = NULL, .command = NULL,
}; };
EXPORT_SYMBOL(hdmiphy_driver); EXPORT_SYMBOL(hdmiphy_driver);
...@@ -1029,8 +1029,8 @@ static irqreturn_t mixer_irq_handler(int irq, void *arg) ...@@ -1029,8 +1029,8 @@ static irqreturn_t mixer_irq_handler(int irq, void *arg)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int __devinit mixer_resources_init(struct exynos_drm_hdmi_context *ctx, static int mixer_resources_init(struct exynos_drm_hdmi_context *ctx,
struct platform_device *pdev) struct platform_device *pdev)
{ {
struct mixer_context *mixer_ctx = ctx->ctx; struct mixer_context *mixer_ctx = ctx->ctx;
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
...@@ -1081,8 +1081,8 @@ static int __devinit mixer_resources_init(struct exynos_drm_hdmi_context *ctx, ...@@ -1081,8 +1081,8 @@ static int __devinit mixer_resources_init(struct exynos_drm_hdmi_context *ctx,
return 0; return 0;
} }
static int __devinit vp_resources_init(struct exynos_drm_hdmi_context *ctx, static int vp_resources_init(struct exynos_drm_hdmi_context *ctx,
struct platform_device *pdev) struct platform_device *pdev)
{ {
struct mixer_context *mixer_ctx = ctx->ctx; struct mixer_context *mixer_ctx = ctx->ctx;
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
...@@ -1155,7 +1155,7 @@ static struct of_device_id mixer_match_types[] = { ...@@ -1155,7 +1155,7 @@ static struct of_device_id mixer_match_types[] = {
} }
}; };
static int __devinit mixer_probe(struct platform_device *pdev) static int mixer_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct exynos_drm_hdmi_context *drm_hdmi_ctx; struct exynos_drm_hdmi_context *drm_hdmi_ctx;
...@@ -1316,6 +1316,6 @@ struct platform_driver mixer_driver = { ...@@ -1316,6 +1316,6 @@ struct platform_driver mixer_driver = {
.of_match_table = mixer_match_types, .of_match_table = mixer_match_types,
}, },
.probe = mixer_probe, .probe = mixer_probe,
.remove = __devexit_p(mixer_remove), .remove = mixer_remove,
.id_table = mixer_driver_types, .id_table = mixer_driver_types,
}; };
...@@ -700,7 +700,7 @@ static struct i2c_driver tc35876x_bridge_i2c_driver = { ...@@ -700,7 +700,7 @@ static struct i2c_driver tc35876x_bridge_i2c_driver = {
}, },
.id_table = tc35876x_bridge_id, .id_table = tc35876x_bridge_id,
.probe = tc35876x_bridge_probe, .probe = tc35876x_bridge_probe,
.remove = __devexit_p(tc35876x_bridge_remove), .remove = tc35876x_bridge_remove,
}; };
/* LCD panel I2C */ /* LCD panel I2C */
...@@ -741,7 +741,7 @@ static struct i2c_driver cmi_lcd_i2c_driver = { ...@@ -741,7 +741,7 @@ static struct i2c_driver cmi_lcd_i2c_driver = {
}, },
.id_table = cmi_lcd_i2c_id, .id_table = cmi_lcd_i2c_id,
.probe = cmi_lcd_i2c_probe, .probe = cmi_lcd_i2c_probe,
.remove = __devexit_p(cmi_lcd_i2c_remove), .remove = cmi_lcd_i2c_remove,
}; };
/* HACK to create I2C device while it's not created by platform code */ /* HACK to create I2C device while it's not created by platform code */
......
...@@ -877,8 +877,7 @@ int i915_reset(struct drm_device *dev) ...@@ -877,8 +877,7 @@ int i915_reset(struct drm_device *dev)
return 0; return 0;
} }
static int __devinit static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ {
struct intel_device_info *intel_info = struct intel_device_info *intel_info =
(struct intel_device_info *) ent->driver_data; (struct intel_device_info *) ent->driver_data;
......
...@@ -60,8 +60,7 @@ static void mgag200_kick_out_firmware_fb(struct pci_dev *pdev) ...@@ -60,8 +60,7 @@ static void mgag200_kick_out_firmware_fb(struct pci_dev *pdev)
} }
static int __devinit static int mga_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
mga_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ {
mgag200_kick_out_firmware_fb(pdev); mgag200_kick_out_firmware_fb(pdev);
......
...@@ -189,8 +189,8 @@ nouveau_accel_init(struct nouveau_drm *drm) ...@@ -189,8 +189,8 @@ nouveau_accel_init(struct nouveau_drm *drm)
nouveau_bo_move_init(drm); nouveau_bo_move_init(drm);
} }
static int __devinit static int nouveau_drm_probe(struct pci_dev *pdev,
nouveau_drm_probe(struct pci_dev *pdev, const struct pci_device_id *pent) const struct pci_device_id *pent)
{ {
struct nouveau_device *device; struct nouveau_device *device;
struct apertures_struct *aper; struct apertures_struct *aper;
......
...@@ -306,8 +306,8 @@ static int radeon_kick_out_firmware_fb(struct pci_dev *pdev) ...@@ -306,8 +306,8 @@ static int radeon_kick_out_firmware_fb(struct pci_dev *pdev)
return 0; return 0;
} }
static int __devinit static int radeon_pci_probe(struct pci_dev *pdev,
radeon_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
int ret; int ret;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* Hardware initialization * Hardware initialization
*/ */
static int __devinit shmob_drm_init_interface(struct shmob_drm_device *sdev) static int shmob_drm_init_interface(struct shmob_drm_device *sdev)
{ {
static const u32 ldmt1r[] = { static const u32 ldmt1r[] = {
[SHMOB_DRM_IFACE_RGB8] = LDMT1R_MIFTYP_RGB8, [SHMOB_DRM_IFACE_RGB8] = LDMT1R_MIFTYP_RGB8,
...@@ -67,7 +67,7 @@ static int __devinit shmob_drm_init_interface(struct shmob_drm_device *sdev) ...@@ -67,7 +67,7 @@ static int __devinit shmob_drm_init_interface(struct shmob_drm_device *sdev)
return 0; return 0;
} }
static int __devinit shmob_drm_setup_clocks(struct shmob_drm_device *sdev, static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev,
enum shmob_drm_clk_source clksrc) enum shmob_drm_clk_source clksrc)
{ {
struct clk *clk; struct clk *clk;
...@@ -330,12 +330,12 @@ static const struct dev_pm_ops shmob_drm_pm_ops = { ...@@ -330,12 +330,12 @@ static const struct dev_pm_ops shmob_drm_pm_ops = {
* Platform driver * Platform driver
*/ */
static int __devinit shmob_drm_probe(struct platform_device *pdev) static int shmob_drm_probe(struct platform_device *pdev)
{ {
return drm_platform_init(&shmob_drm_driver, pdev); return drm_platform_init(&shmob_drm_driver, pdev);
} }
static int __devexit shmob_drm_remove(struct platform_device *pdev) static int shmob_drm_remove(struct platform_device *pdev)
{ {
drm_platform_exit(&shmob_drm_driver, pdev); drm_platform_exit(&shmob_drm_driver, pdev);
...@@ -344,7 +344,7 @@ static int __devexit shmob_drm_remove(struct platform_device *pdev) ...@@ -344,7 +344,7 @@ static int __devexit shmob_drm_remove(struct platform_device *pdev)
static struct platform_driver shmob_drm_platform_driver = { static struct platform_driver shmob_drm_platform_driver = {
.probe = shmob_drm_probe, .probe = shmob_drm_probe,
.remove = __devexit_p(shmob_drm_remove), .remove = shmob_drm_remove,
.driver = { .driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "shmob-drm", .name = "shmob-drm",
......
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