diff options
author | gonzo <gonzo@FreeBSD.org> | 2012-11-23 19:20:38 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2012-11-23 19:20:38 +0000 |
commit | 43b4861f200abc462ecaa1d2c5e594349ee32433 (patch) | |
tree | dd00b5e4551c409b880b4b9e9d2834995a1387b6 /sys/dev/gpio | |
parent | 2bf4edc8d9f46e233a95ec24fdb7ffd72cc428c5 (diff) | |
download | FreeBSD-src-43b4861f200abc462ecaa1d2c5e594349ee32433.zip FreeBSD-src-43b4861f200abc462ecaa1d2c5e594349ee32433.tar.gz |
Style fixes
- Remove C++ - style comments
- Use proper device name in panic messages
Diffstat (limited to 'sys/dev/gpio')
-rw-r--r-- | sys/dev/gpio/gpiobus.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/gpio/gpiobus.c b/sys/dev/gpio/gpiobus.c index 09ebe4e..c4a62f7 100644 --- a/sys/dev/gpio/gpiobus.c +++ b/sys/dev/gpio/gpiobus.c @@ -271,7 +271,6 @@ static int gpiobus_child_location_str(device_t bus, device_t child, char *buf, size_t buflen) { - // struct gpiobus_ivar *devi = GPIOBUS_IVAR(child); snprintf(buf, buflen, "pins=?"); return (0); @@ -349,7 +348,7 @@ gpiobus_acquire_bus(device_t busdev, device_t child) GPIOBUS_ASSERT_LOCKED(sc); if (sc->sc_owner) - panic("rb_cpldbus: cannot serialize the access to device."); + panic("gpiobus: cannot serialize the access to device."); sc->sc_owner = child; } @@ -362,9 +361,9 @@ gpiobus_release_bus(device_t busdev, device_t child) GPIOBUS_ASSERT_LOCKED(sc); if (!sc->sc_owner) - panic("rb_cpldbus: releasing unowned bus."); + panic("gpiobus: releasing unowned bus."); if (sc->sc_owner != child) - panic("rb_cpldbus: you don't own the bus. game over."); + panic("gpiobus: you don't own the bus. game over."); sc->sc_owner = NULL; } |