diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:06:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:14 -0500 |
commit | 27796aa0dce01661fedb5f3fa6b11db13f02a77f (patch) | |
tree | 253bfef10c297af77e94db327c394358abd1f3b5 /drivers | |
parent | 4e608e4ed9fea873c60749bdba2fbbbfb234bee0 (diff) |
Drivers: memory: 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
__devinitconst, 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: Hiroshi DOYU <hdoyu@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/memory/tegra20-mc.c | 4 | ||||
-rw-r--r-- | drivers/memory/tegra30-mc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/memory/tegra20-mc.c b/drivers/memory/tegra20-mc.c index e6764bb41cb9..186f27d9e5f1 100644 --- a/drivers/memory/tegra20-mc.c +++ b/drivers/memory/tegra20-mc.c | |||
@@ -177,7 +177,7 @@ static void tegra20_mc_decode(struct tegra20_mc *mc, int n) | |||
177 | "carveout" : "trustzone") : ""); | 177 | "carveout" : "trustzone") : ""); |
178 | } | 178 | } |
179 | 179 | ||
180 | static const struct of_device_id tegra20_mc_of_match[] __devinitconst = { | 180 | static const struct of_device_id tegra20_mc_of_match[] = { |
181 | { .compatible = "nvidia,tegra20-mc", }, | 181 | { .compatible = "nvidia,tegra20-mc", }, |
182 | {}, | 182 | {}, |
183 | }; | 183 | }; |
@@ -198,7 +198,7 @@ static irqreturn_t tegra20_mc_isr(int irq, void *data) | |||
198 | return IRQ_HANDLED; | 198 | return IRQ_HANDLED; |
199 | } | 199 | } |
200 | 200 | ||
201 | static int __devinit tegra20_mc_probe(struct platform_device *pdev) | 201 | static int tegra20_mc_probe(struct platform_device *pdev) |
202 | { | 202 | { |
203 | struct resource *irq; | 203 | struct resource *irq; |
204 | struct tegra20_mc *mc; | 204 | struct tegra20_mc *mc; |
diff --git a/drivers/memory/tegra30-mc.c b/drivers/memory/tegra30-mc.c index 802b9ea431fa..0b7ab9332a18 100644 --- a/drivers/memory/tegra30-mc.c +++ b/drivers/memory/tegra30-mc.c | |||
@@ -295,7 +295,7 @@ static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm, | |||
295 | tegra30_mc_suspend, | 295 | tegra30_mc_suspend, |
296 | tegra30_mc_resume, NULL); | 296 | tegra30_mc_resume, NULL); |
297 | 297 | ||
298 | static const struct of_device_id tegra30_mc_of_match[] __devinitconst = { | 298 | static const struct of_device_id tegra30_mc_of_match[] = { |
299 | { .compatible = "nvidia,tegra30-mc", }, | 299 | { .compatible = "nvidia,tegra30-mc", }, |
300 | {}, | 300 | {}, |
301 | }; | 301 | }; |
@@ -316,7 +316,7 @@ static irqreturn_t tegra30_mc_isr(int irq, void *data) | |||
316 | return IRQ_HANDLED; | 316 | return IRQ_HANDLED; |
317 | } | 317 | } |
318 | 318 | ||
319 | static int __devinit tegra30_mc_probe(struct platform_device *pdev) | 319 | static int tegra30_mc_probe(struct platform_device *pdev) |
320 | { | 320 | { |
321 | struct resource *irq; | 321 | struct resource *irq; |
322 | struct tegra30_mc *mc; | 322 | struct tegra30_mc *mc; |