From 19aa4fea4c5466e0ca260ad3e3b673c203031da1 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 15 Aug 2009 01:03:13 +0000 Subject: [PATCH] Fix style error replicated multiple times. Move to mips_bus_space_generic for octeon obio impl. --- sys/mips/malta/obio.c | 8 +++----- sys/mips/octeon1/obio.c | 13 +++++-------- sys/mips/sentry5/obio.c | 6 ++---- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/sys/mips/malta/obio.c b/sys/mips/malta/obio.c index 39025d5b7372..21958375fa65 100644 --- a/sys/mips/malta/obio.c +++ b/sys/mips/malta/obio.c @@ -63,20 +63,18 @@ int obio_attach(device_t); * A bit tricky and hackish. Since we need OBIO to rely * on PCI we make it pseudo-pci device. But there should * be only one such device, so we use this static flag - * to prevent false positives on every realPCI device probe. + * to prevent false positives on every real PCI device probe. */ static int have_one = 0; int obio_probe(device_t dev) { - if(!have_one) - { + if (!have_one) { have_one = 1; return 0; } - else - return (ENXIO); + return (ENXIO); } int diff --git a/sys/mips/octeon1/obio.c b/sys/mips/octeon1/obio.c index 7f573c29e0b0..de3910ba4e83 100644 --- a/sys/mips/octeon1/obio.c +++ b/sys/mips/octeon1/obio.c @@ -60,22 +60,19 @@ int obio_probe(device_t); int obio_attach(device_t); /* - * We need only one obio. - * Any other device hanging off of it, shouldn't cause multiple of - * these to be found. + * We need only one obio. Any other device hanging off of it, + * shouldn't cause multiple of these to be found. */ static int have_one = 0; int obio_probe(device_t dev) { - if(!have_one) - { + if (!have_one) { have_one = 1; return 0; } - else - return (ENXIO); + return (ENXIO); } int @@ -83,7 +80,7 @@ obio_attach(device_t dev) { struct obio_softc *sc = device_get_softc(dev); - sc->oba_st = MIPS_BUS_SPACE_IO; + sc->oba_st = mips_bus_space_generic; sc->oba_addr = OCTEON_UART0ADR; sc->oba_size = 0x10000; sc->oba_rman.rm_type = RMAN_ARRAY; diff --git a/sys/mips/sentry5/obio.c b/sys/mips/sentry5/obio.c index 65c76aba3829..51eaa9d4e9a3 100644 --- a/sys/mips/sentry5/obio.c +++ b/sys/mips/sentry5/obio.c @@ -72,13 +72,11 @@ static int have_one = 0; int obio_probe(device_t dev) { - if(!have_one) - { + if (!have_one) { have_one = 1; return 0; } - else - return (ENXIO); + return (ENXIO); } int