Port-sparc64 archive

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

rtc(4) does not need BUS_SPACE_MAP_LINEAR, i think



hi folks.

it seems that there's no reason for sparc64 rtc(4) to use 
BUS_SPACE_MAP_LINEAR.

any objections to the following patch?


.mrg.


Index: dev/rtc.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc64/dev/rtc.c,v
retrieving revision 1.5
diff -p -r1.5 rtc.c
*** dev/rtc.c   29 Mar 2008 05:42:46 -0000      1.5
--- dev/rtc.c   13 Dec 2008 05:52:07 -0000
*************** rtc_ebus_attach(device_t parent, device_
*** 144,151 ****
  
        if (bus_space_map(sc->sc_bst,
                         EBUS_ADDR_FROM_REG(&ea->ea_reg[0]),
!                        sz,
!                        BUS_SPACE_MAP_LINEAR,
                         &sc->sc_bsh) != 0) {
                aprint_error(": can't map register\n");
                return;
--- 144,150 ----
  
        if (bus_space_map(sc->sc_bst,
                         EBUS_ADDR_FROM_REG(&ea->ea_reg[0]),
!                        sz, 0,
                         &sc->sc_bsh) != 0) {
                aprint_error(": can't map register\n");
                return;


Home | Main Index | Thread Index | Old Index