diff options
Diffstat (limited to 'arch/arm/mach-at91/sam9_smc.c')
-rw-r--r-- | arch/arm/mach-at91/sam9_smc.c | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/arch/arm/mach-at91/sam9_smc.c b/arch/arm/mach-at91/sam9_smc.c index 05584c0711..ef58a0153a 100644 --- a/arch/arm/mach-at91/sam9_smc.c +++ b/arch/arm/mach-at91/sam9_smc.c @@ -1,21 +1,16 @@ -/* - * linux/arch/arm/mach-at91/sam9_smc.c - * - * Copyright (C) 2008 Andrew Victor - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: 2008 Andrew Victor + +/* linux/arch/arm/mach-at91/sam9_smc.c */ #include <common.h> #include <init.h> #include <io.h> -#include <mach/hardware.h> -#include <mach/cpu.h> +#include <mach/at91/hardware.h> +#include <mach/at91/cpu.h> #include <linux/err.h> -#include <mach/at91sam9_smc.h> +#include <mach/at91/at91sam9_smc.h> #define AT91_SAM9_SMC_CS_STRIDE 0x10 #define AT91_SAMA5_SMC_CS_STRIDE 0x14 @@ -173,7 +168,7 @@ void sama5_smc_configure(int id, int cs, struct sam9_smc_config *config) sam9_smc_cs_write_timings(AT91_SMC_CS(id, cs), config); } -static int at91sam9_smc_probe(struct device_d *dev) +static int at91sam9_smc_probe(struct device *dev) { struct resource *iores; int id = dev->id; @@ -195,13 +190,9 @@ static int at91sam9_smc_probe(struct device_d *dev) return 0; } -static struct driver_d at91sam9_smc_driver = { +static struct driver at91sam9_smc_driver = { .name = "at91sam9-smc", .probe = at91sam9_smc_probe, }; -static int at91sam9_smc_init(void) -{ - return platform_driver_register(&at91sam9_smc_driver); -} -coredevice_initcall(at91sam9_smc_init); +postcore_platform_driver(at91sam9_smc_driver); |