diff options
author | phk <phk@FreeBSD.org> | 2004-06-17 17:16:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-17 17:16:53 +0000 |
commit | 40dd98a3bd2049465e7644b361b60da41a46efa0 (patch) | |
tree | fe8b297144afd6d6f7db41275c72cb5eb663ec02 /sys/dev/led | |
parent | 9acfe1e733142ca875624a3acbf96c4ff27b36a4 (diff) | |
download | FreeBSD-src-40dd98a3bd2049465e7644b361b60da41a46efa0.zip FreeBSD-src-40dd98a3bd2049465e7644b361b60da41a46efa0.tar.gz |
Second half of the dev_t cleanup.
The big lines are:
NODEV -> NULL
NOUDEV -> NODEV
udev_t -> dev_t
udev2dev() -> findcdev()
Various minor adjustments including handling of userland access to kernel
space struct cdev etc.
Diffstat (limited to 'sys/dev/led')
-rw-r--r-- | sys/dev/led/led.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c index 4c19e27..df9f27e 100644 --- a/sys/dev/led/led.c +++ b/sys/dev/led/led.c @@ -234,13 +234,13 @@ led_create(led_t *func, void *priv, char const *name) sb = sbuf_new(NULL, NULL, SPECNAMELEN, SBUF_FIXEDLEN); if (sb == NULL) - return (NODEV); + return (NULL); sbuf_cpy(sb, "led/"); sbuf_cat(sb, name); sbuf_finish(sb); if (sbuf_overflowed(sb)) { sbuf_delete(sb); - return (NODEV); + return (NULL); } sc = malloc(sizeof *sc, M_LED, M_WAITOK | M_ZERO); |