Date: Wed, 22 Mar 2006 20:48:30 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93808 for review Message-ID: <200603222048.k2MKmUSH097007@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93808 Change 93808 by cognet@cognet on 2006/03/22 20:48:25 Use the unit instead of 0 as minor for devices which has multiple instances. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/at91_pio.c#7 edit .. //depot/projects/arm/src/sys/arm/at91/at91_ssc.c#2 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/at91_pio.c#7 (text+ko) ==== @@ -130,8 +130,8 @@ AT91_PIO_LOCK_DESTROY(sc); goto out; } - sc->cdev = make_dev(&at91_pio_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, - "pio%d", device_get_unit(dev)); + sc->cdev = make_dev(&at91_pio_cdevsw, device_get_unit(dev), UID_ROOT + , GID_WHEEL, 0600, "pio%d", device_get_unit(dev)); if (sc->cdev == NULL) { err = ENOMEM; goto out; ==== //depot/projects/arm/src/sys/arm/at91/at91_ssc.c#2 (text+ko) ==== @@ -129,8 +129,8 @@ AT91_SSC_LOCK_DESTROY(sc); goto out; } - sc->cdev = make_dev(&at91_ssc_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, - "ssc%d", device_get_unit(dev)); + sc->cdev = make_dev(&at91_ssc_cdevsw, device_get_unit(dev), UID_ROOT, + GID_WHEEL, 0600, "ssc%d", device_get_unit(dev)); if (sc->cdev == NULL) { err = ENOMEM; goto out;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603222048.k2MKmUSH097007>