svn commit: r300390 - head/sys/dev/gpio
Luiz Otavio O Souza
loos at FreeBSD.org
Sun May 22 03:12:50 UTC 2016
Author: loos
Date: Sun May 22 03:12:49 2016
New Revision: 300390
URL: https://svnweb.freebsd.org/changeset/base/300390
Log:
Fix probe routine to return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC.
While here fix a few style(9) issues.
Modified:
head/sys/dev/gpio/gpioled.c
Modified: head/sys/dev/gpio/gpioled.c
==============================================================================
--- head/sys/dev/gpio/gpioled.c Sun May 22 03:05:27 2016 (r300389)
+++ head/sys/dev/gpio/gpioled.c Sun May 22 03:12:49 2016 (r300390)
@@ -54,12 +54,11 @@ __FBSDID("$FreeBSD$");
*/
#define GPIOLED_PIN 0
-#define GPIOLED_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
+#define GPIOLED_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
#define GPIOLED_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
-#define GPIOLED_LOCK_INIT(_sc) \
- mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \
- "gpioled", MTX_DEF)
-#define GPIOLED_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx);
+#define GPIOLED_LOCK_INIT(_sc) mtx_init(&(_sc)->sc_mtx, \
+ device_get_nameunit((_sc)->sc_dev), "gpioled", MTX_DEF)
+#define GPIOLED_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx)
struct gpioled_softc
{
@@ -159,7 +158,7 @@ gpioled_probe(device_t dev)
#endif
device_set_desc(dev, "GPIO led");
- return (0);
+ return (BUS_PROBE_DEFAULT);
}
static int
More information about the svn-src-all
mailing list