Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH 2/2] CFATTACH_DECL_NEW changes for OMAP



config_devalloc from sys/kern/subr_autoconf.c panics if DVF_PRIV_ALLOC is not 
set.
CFATTACH_DECL_NEW sets it while CFATTACH_DECL does not.

Allows to boot OSK5912 with OMAP5912 (ARM926EJ-S).
---
 sys/arch/arm/omap/obio_ohci.c   |    2 +-
 sys/arch/arm/omap/omap_emifs.c  |    2 +-
 sys/arch/arm/omap/omap_gpio.c   |    2 +-
 sys/arch/arm/omap/omap_mputmr.c |    2 +-
 sys/arch/arm/omap/omap_ocp.c    |    2 +-
 sys/arch/arm/omap/omap_rtc.c    |    2 +-
 sys/arch/arm/omap/omap_tipb.c   |    2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/sys/arch/arm/omap/obio_ohci.c b/sys/arch/arm/omap/obio_ohci.c
index 76837ee..4a3f081 100644
--- a/sys/arch/arm/omap/obio_ohci.c
+++ b/sys/arch/arm/omap/obio_ohci.c
@@ -59,7 +59,7 @@ static int    obioohci_detach(struct device *, int);
 void *         obioohci_fake_intr_establish(int (*)(void *), void *);
 void           obioohci_fake_intr(void);
 
-CFATTACH_DECL(obioohci, sizeof(struct obioohci_softc),
+CFATTACH_DECL_NEW(obioohci, sizeof(struct obioohci_softc),
     obioohci_match, obioohci_attach, obioohci_detach, ohci_activate);
 
 static void    obioohci_clkinit(struct obio_attach_args *);
diff --git a/sys/arch/arm/omap/omap_emifs.c b/sys/arch/arm/omap/omap_emifs.c
index 1030a08..702908b 100644
--- a/sys/arch/arm/omap/omap_emifs.c
+++ b/sys/arch/arm/omap/omap_emifs.c
@@ -165,7 +165,7 @@ static const timing_parm_info timing_parms[] = {
 };
 
 /* attach structures */
-CFATTACH_DECL(emifs, sizeof(struct emifs_softc),
+CFATTACH_DECL_NEW(emifs, sizeof(struct emifs_softc),
     emifs_match, emifs_attach, NULL, NULL);
 
 static int emifs_attached;
diff --git a/sys/arch/arm/omap/omap_gpio.c b/sys/arch/arm/omap/omap_gpio.c
index 2b70656..461d664 100644
--- a/sys/arch/arm/omap/omap_gpio.c
+++ b/sys/arch/arm/omap/omap_gpio.c
@@ -79,7 +79,7 @@ static void   omapgpio_attach(device_t, device_t, void *);
 
 extern struct cfdriver omapgpio_cd;
 
-CFATTACH_DECL(omapgpio, sizeof(struct omapgpio_softc),
+CFATTACH_DECL_NEW(omapgpio, sizeof(struct omapgpio_softc),
     omapgpio_match, omapgpio_attach, NULL, NULL);
 
 static int     omapgpio_intr(void *);
diff --git a/sys/arch/arm/omap/omap_mputmr.c b/sys/arch/arm/omap/omap_mputmr.c
index 2d9fa63..2042f1b 100644
--- a/sys/arch/arm/omap/omap_mputmr.c
+++ b/sys/arch/arm/omap/omap_mputmr.c
@@ -139,7 +139,7 @@ static struct omapmputmr_softc *ref_sc = NULL;
 #define MPU_LOAD_TIMER 0x04
 #define MPU_READ_TIMER 0x08
 
-CFATTACH_DECL(omapmputmr, sizeof(struct omapmputmr_softc),
+CFATTACH_DECL_NEW(omapmputmr, sizeof(struct omapmputmr_softc),
     omapmputmr_match, omapmputmr_attach, NULL, NULL);
 
 static int
diff --git a/sys/arch/arm/omap/omap_ocp.c b/sys/arch/arm/omap/omap_ocp.c
index 72e8e02..b29e910 100644
--- a/sys/arch/arm/omap/omap_ocp.c
+++ b/sys/arch/arm/omap/omap_ocp.c
@@ -126,7 +126,7 @@ static int  ocp_search(device_t, cfdata_t, const int *, 
void *);
 static int     ocp_print(void *, const char *);
 
 /* attach structures */
-CFATTACH_DECL(ocp, sizeof(struct ocp_softc),
+CFATTACH_DECL_NEW(ocp, sizeof(struct ocp_softc),
     ocp_match, ocp_attach, NULL, NULL);
 
 static int ocp_attached;
diff --git a/sys/arch/arm/omap/omap_rtc.c b/sys/arch/arm/omap/omap_rtc.c
index b53bc1d..0a681df 100644
--- a/sys/arch/arm/omap/omap_rtc.c
+++ b/sys/arch/arm/omap/omap_rtc.c
@@ -90,7 +90,7 @@ struct omaprtc_softc {
        struct todr_chip_handle sc_todr;
 };
 
-CFATTACH_DECL(omaprtc, sizeof(struct omaprtc_softc),
+CFATTACH_DECL_NEW(omaprtc, sizeof(struct omaprtc_softc),
     omaprtc_match, omaprtc_attach, NULL, NULL);
 
 static int omaprtc_gettime(todr_chip_handle_t, struct clock_ymdhms *);
diff --git a/sys/arch/arm/omap/omap_tipb.c b/sys/arch/arm/omap/omap_tipb.c
index 9104dd1..43561d1 100644
--- a/sys/arch/arm/omap/omap_tipb.c
+++ b/sys/arch/arm/omap/omap_tipb.c
@@ -128,7 +128,7 @@ static int  tipb_search(device_t, cfdata_t,
 static int     tipb_print(void *, const char *);
 
 /* attach structures */
-CFATTACH_DECL(tipb, sizeof(struct tipb_softc),
+CFATTACH_DECL_NEW(tipb, sizeof(struct tipb_softc),
     tipb_match, tipb_attach, NULL, NULL);
 
 static int tipb_attached;
-- 
1.5.6.5



Home | Main Index | Thread Index | Old Index