aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/amba
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:16:42 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:02 -0500
commitc571b211a70bcb04249be5cb7338f95d2ec8100f (patch)
tree4a47da45337a2d9d0e09f518d81377404bb99909 /drivers/amba
parent4eab7a9eb2def0b4b0f36397a6cfca6eadba7302 (diff)
Drivers: amba: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed, as well as the use of CONFIG_HOTPLUG. This patch does both, removing the use of CONFIG_HOTPLUG in the amba/bus.c file, and __devinit and __devinitconst in the tegra-ahb.c driver. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/amba')
-rw-r--r--drivers/amba/bus.c4
-rw-r--r--drivers/amba/tegra-ahb.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index a2fc56d2e681..cdbad3a454a0 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -45,7 +45,6 @@ static int amba_match(struct device *dev, struct device_driver *drv)
45 return amba_lookup(pcdrv->id_table, pcdev) != NULL; 45 return amba_lookup(pcdrv->id_table, pcdev) != NULL;
46} 46}
47 47
48#ifdef CONFIG_HOTPLUG
49static int amba_uevent(struct device *dev, struct kobj_uevent_env *env) 48static int amba_uevent(struct device *dev, struct kobj_uevent_env *env)
50{ 49{
51 struct amba_device *pcdev = to_amba_device(dev); 50 struct amba_device *pcdev = to_amba_device(dev);
@@ -58,9 +57,6 @@ static int amba_uevent(struct device *dev, struct kobj_uevent_env *env)
58 retval = add_uevent_var(env, "MODALIAS=amba:d%08X", pcdev->periphid); 57 retval = add_uevent_var(env, "MODALIAS=amba:d%08X", pcdev->periphid);
59 return retval; 58 return retval;
60} 59}
61#else
62#define amba_uevent NULL
63#endif
64 60
65#define amba_attr_func(name,fmt,arg...) \ 61#define amba_attr_func(name,fmt,arg...) \
66static ssize_t name##_show(struct device *_dev, \ 62static ssize_t name##_show(struct device *_dev, \
diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c
index 0576a7dd32a5..536c166f4253 100644
--- a/drivers/amba/tegra-ahb.c
+++ b/drivers/amba/tegra-ahb.c
@@ -243,7 +243,7 @@ static void tegra_ahb_gizmo_init(struct tegra_ahb *ahb)
243 gizmo_writel(ahb, val, AHB_MEM_PREFETCH_CFG4); 243 gizmo_writel(ahb, val, AHB_MEM_PREFETCH_CFG4);
244} 244}
245 245
246static int __devinit tegra_ahb_probe(struct platform_device *pdev) 246static int tegra_ahb_probe(struct platform_device *pdev)
247{ 247{
248 struct resource *res; 248 struct resource *res;
249 struct tegra_ahb *ahb; 249 struct tegra_ahb *ahb;
@@ -267,7 +267,7 @@ static int __devinit tegra_ahb_probe(struct platform_device *pdev)
267 return 0; 267 return 0;
268} 268}
269 269
270static const struct of_device_id tegra_ahb_of_match[] __devinitconst = { 270static const struct of_device_id tegra_ahb_of_match[] = {
271 { .compatible = "nvidia,tegra30-ahb", }, 271 { .compatible = "nvidia,tegra30-ahb", },
272 { .compatible = "nvidia,tegra20-ahb", }, 272 { .compatible = "nvidia,tegra20-ahb", },
273 {}, 273 {},