Skip to content

Commit 27796aa

Browse files
committed
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>
1 parent 4e608e4 commit 27796aa

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/memory/tegra20-mc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static void tegra20_mc_decode(struct tegra20_mc *mc, int n)
177177
"carveout" : "trustzone") : "");
178178
}
179179

180-
static const struct of_device_id tegra20_mc_of_match[] __devinitconst = {
180+
static const struct of_device_id tegra20_mc_of_match[] = {
181181
{ .compatible = "nvidia,tegra20-mc", },
182182
{},
183183
};
@@ -198,7 +198,7 @@ static irqreturn_t tegra20_mc_isr(int irq, void *data)
198198
return IRQ_HANDLED;
199199
}
200200

201-
static int __devinit tegra20_mc_probe(struct platform_device *pdev)
201+
static int tegra20_mc_probe(struct platform_device *pdev)
202202
{
203203
struct resource *irq;
204204
struct tegra20_mc *mc;

‎drivers/memory/tegra30-mc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm,
295295
tegra30_mc_suspend,
296296
tegra30_mc_resume, NULL);
297297

298-
static const struct of_device_id tegra30_mc_of_match[] __devinitconst = {
298+
static const struct of_device_id tegra30_mc_of_match[] = {
299299
{ .compatible = "nvidia,tegra30-mc", },
300300
{},
301301
};
@@ -316,7 +316,7 @@ static irqreturn_t tegra30_mc_isr(int irq, void *data)
316316
return IRQ_HANDLED;
317317
}
318318

319-
static int __devinit tegra30_mc_probe(struct platform_device *pdev)
319+
static int tegra30_mc_probe(struct platform_device *pdev)
320320
{
321321
struct resource *irq;
322322
struct tegra30_mc *mc;

0 commit comments

Comments
 (0)