Port-arm archive

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

[PATCH 1/11] OMAP2: use new CFATTACH interface for obio_com



--Imre

 From 37fec1897d95ba745e80b07e2ee874d0b2d9cb4e Mon Sep 17 00:00:00 2001
 From: Imre Deak <imre.deak%teleca.com@localhost>
 Date: Fri, 25 Apr 2008 21:14:36 +0300
 Subject: [PATCH] OMAP2: use new CFATTACH interface for obio_com.

 ---
  sys/arch/arm/omap/obio_com.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

 diff --git a/sys/arch/arm/omap/obio_com.c b/sys/arch/arm/omap/obio_com.c
 index 01c2e50..56bd9ed 100644
 --- a/sys/arch/arm/omap/obio_com.c
 +++ b/sys/arch/arm/omap/obio_com.c
 @@ -71,7 +71,7 @@ struct com_obio_softc {
        struct callout sc_callout;
  };

 -CFATTACH_DECL(obiouart, sizeof(struct com_obio_softc),
 +CFATTACH_DECL_NEW(obiouart, sizeof(struct com_obio_softc),
     obiouart_match, obiouart_attach, NULL, NULL);

  static int
 @@ -126,6 +126,7 @@ obiouart_attach(device_t parent, device_t self, void *aux)

        iot = obio->obio_iot;
        iobase = obio->obio_addr;
 +       sc->sc_dev = self;
        sc->sc_frequency = OMAP_COM_FREQ;
        sc->sc_type = COM_TYPE_NORMAL;

 --
 1.5.4.2



 ----- End forwarded message -----


Home | Main Index | Thread Index | Old Index