summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/omap_devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap/omap_devices.c')
-rw-r--r--arch/arm/mach-omap/omap_devices.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/arch/arm/mach-omap/omap_devices.c b/arch/arm/mach-omap/omap_devices.c
index beae59f74d..3ade3225df 100644
--- a/arch/arm/mach-omap/omap_devices.c
+++ b/arch/arm/mach-omap/omap_devices.c
@@ -1,10 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <driver.h>
-#include <platform_data/serial-ns16550.h>
#include <asm/armlinux.h>
-#include <mach/omap3-devices.h>
+#include <mach/omap/omap3-devices.h>
void omap_add_ram0(resource_size_t size)
{
@@ -16,15 +15,10 @@ void omap_add_sram0(resource_size_t base, resource_size_t size)
add_mem_device("sram0", base, size, IORESOURCE_MEM_WRITEABLE);
}
-static struct NS16550_plat serial_plat = {
- .clock = 48000000, /* 48MHz (APLL96/2) */
- .shift = 2,
-};
-
-struct device_d *omap_add_uart(int id, unsigned long base)
+struct device *omap_add_uart(int id, unsigned long base)
{
return add_generic_device("omap-uart", id, NULL, base, 1024,
- IORESOURCE_MEM | IORESOURCE_MEM_8BIT, &serial_plat);
+ IORESOURCE_MEM | IORESOURCE_MEM_8BIT, NULL);
}
#if defined(CONFIG_DRIVER_VIDEO_OMAP)
@@ -42,7 +36,7 @@ static struct resource omapfb_resources[] = {
},
};
-struct device_d *omap_add_display(struct omapfb_platform_data *o_pdata)
+struct device *omap_add_display(struct omapfb_platform_data *o_pdata)
{
return add_generic_device_res("omap_fb", -1,
omapfb_resources,
@@ -50,7 +44,7 @@ struct device_d *omap_add_display(struct omapfb_platform_data *o_pdata)
o_pdata);
}
#else
-struct device_d *omap_add_display(struct omapfb_platform_data *o_pdata)
+struct device *omap_add_display(struct omapfb_platform_data *o_pdata)
{
return NULL;
}