Date: Sun, 22 May 2016 03:12:49 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300390 - head/sys/dev/gpio Message-ID: <201605220312.u4M3CnMb002552@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605220312.u4M3CnMb002552>