@@ -13,7 +13,8 @@
#include <mach/mxsfb.h>
#include <linux/amba/bus.h>
-static inline int mx23_add_duart() {
+static inline int mx23_add_duart(void)
+{
struct amba_device *d;
d = amba_ahb_device_add(NULL, "duart", MX23_DUART_BASE_ADDR, SZ_8K,
@@ -13,7 +13,8 @@
#include <mach/mxsfb.h>
#include <linux/amba/bus.h>
-static inline int mx28_add_duart() {
+static inline int mx28_add_duart(void)
+{
struct amba_device *d;
d = amba_ahb_device_add(NULL, "duart", MX28_DUART_BASE_ADDR, SZ_8K,
@@ -21,7 +22,6 @@ static inline int mx28_add_duart() {
return IS_ERR(d) ? PTR_ERR(d) : 0;
}
-
extern const struct mxs_auart_data mx28_auart_data[] __initconst;
#define mx28_add_auart(id) mxs_add_auart(&mx28_auart_data[id])
#define mx28_add_auart0() mx28_add_auart(0)