From owner-p4-projects@FreeBSD.ORG Wed Mar 22 20:48:31 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DD34116A428; Wed, 22 Mar 2006 20:48:30 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9946D16A401 for ; Wed, 22 Mar 2006 20:48:30 +0000 (UTC) (envelope-from cognet@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FA9543D45 for ; Wed, 22 Mar 2006 20:48:30 +0000 (GMT) (envelope-from cognet@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k2MKmUQI097010 for ; Wed, 22 Mar 2006 20:48:30 GMT (envelope-from cognet@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k2MKmUSH097007 for perforce@freebsd.org; Wed, 22 Mar 2006 20:48:30 GMT (envelope-from cognet@freebsd.org) Date: Wed, 22 Mar 2006 20:48:30 GMT Message-Id: <200603222048.k2MKmUSH097007@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cognet@freebsd.org using -f From: Olivier Houchard To: Perforce Change Reviews Cc: Subject: PERFORCE change 93808 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2006 20:48:31 -0000 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;