From owner-svn-src-all@FreeBSD.ORG Thu Jan 29 05:59:43 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5131D1065670; Thu, 29 Jan 2009 05:59:43 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA2A8FC12; Thu, 29 Jan 2009 05:59:43 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0T5xhOX043648; Thu, 29 Jan 2009 05:59:43 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0T5xhmL043647; Thu, 29 Jan 2009 05:59:43 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200901290559.n0T5xhmL043647@svn.freebsd.org> From: Ed Schouten Date: Thu, 29 Jan 2009 05:59:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187878 - head/sys/dev/adb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 05:59:43 -0000 Author: ed Date: Thu Jan 29 05:59:42 2009 New Revision: 187878 URL: http://svn.freebsd.org/changeset/base/187878 Log: Make adb_mouse use dev2unit() instead of minor(). A real fix would be to migrate it to si_drv0 to store the softc directly, but this is the quickest way to fix it right now. Modified: head/sys/dev/adb/adb_mouse.c Modified: head/sys/dev/adb/adb_mouse.c ============================================================================== --- head/sys/dev/adb/adb_mouse.c Wed Jan 28 23:18:21 2009 (r187877) +++ head/sys/dev/adb/adb_mouse.c Thu Jan 29 05:59:42 2009 (r187878) @@ -46,7 +46,7 @@ #include "adb.h" -#define CDEV_GET_SOFTC(x) devclass_get_softc(adb_mouse_devclass, minor(x) & 0x1f) +#define CDEV_GET_SOFTC(x) devclass_get_softc(adb_mouse_devclass, dev2unit(x) & 0x1f) static int adb_mouse_probe(device_t dev); static int adb_mouse_attach(device_t dev);