diff options
Diffstat (limited to 'arch/arm/mach-omap/am33xx_scrm.c')
-rw-r--r-- | arch/arm/mach-omap/am33xx_scrm.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mach-omap/am33xx_scrm.c b/arch/arm/mach-omap/am33xx_scrm.c index 80510cf5b4..431e72fdda 100644 --- a/arch/arm/mach-omap/am33xx_scrm.c +++ b/arch/arm/mach-omap/am33xx_scrm.c @@ -20,13 +20,13 @@ #include <of.h> #include <asm/barebox-arm.h> #include <asm/memory.h> -#include <mach/am33xx-silicon.h> +#include <mach/omap/am33xx-silicon.h> +#include <mach/omap/emif4.h> -static int am33xx_scrm_probe(struct device_d *dev) +static int am33xx_scrm_probe(struct device *dev) { - arm_add_mem_device("ram0", 0x80000000, am335x_sdram_size()); - - return 0; + return arm_add_mem_device("ram0", 0x80000000, + emif4_sdram_size(IOMEM(AM33XX_EMIF4_BASE))); } static __maybe_unused struct of_device_id am33xx_scrm_dt_ids[] = { @@ -36,8 +36,9 @@ static __maybe_unused struct of_device_id am33xx_scrm_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, am33xx_scrm_dt_ids); -static struct driver_d am33xx_scrm_driver = { +static struct driver am33xx_scrm_driver = { .name = "am33xx-scrm", .probe = am33xx_scrm_probe, .of_compatible = DRV_OF_COMPAT(am33xx_scrm_dt_ids), |