From patchwork Sun Nov 18 09:32:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Mazur X-Patchwork-Id: 1760531 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 67509DF280 for ; Sun, 18 Nov 2012 09:40:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751779Ab2KRJkZ (ORCPT ); Sun, 18 Nov 2012 04:40:25 -0500 Received: from [93.179.225.50] ([93.179.225.50]:54705 "EHLO shrek.podlesie.net" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751716Ab2KRJkZ (ORCPT ); Sun, 18 Nov 2012 04:40:25 -0500 X-Greylist: delayed 357 seconds by postgrey-1.27 at vger.kernel.org; Sun, 18 Nov 2012 04:40:25 EST Received: from geronimo.kostuchna.emnet (localhost [127.0.0.1]) by shrek.podlesie.net (Postfix) with ESMTP id 4B2676EC; Sun, 18 Nov 2012 10:34:25 +0100 (CET) From: Krzysztof Mazur To: dmitry.torokhov@gmail.com Cc: jkosina@suse.cz, pavel@ucw.cz, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Mazur Subject: [PATCH] Input: mousedev - fix /dev/input/mice minor number Date: Sun, 18 Nov 2012 10:32:55 +0100 Message-Id: <1353231175-2344-1-git-send-email-krzysiek@podlesie.net> X-Mailer: git-send-email 1.8.0.283.gc57d856 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The mousedev always used relative minor number 31 for MOUSEDEV_MIX (/dev/input/mice), but alsolute minor number was 63. Commit 7f8d4cad1e4e11a45d02bd6e024cc2812963c38a ("Input: extend the number of event (and other) devices") changed it to 31 alsolute minor number. Signed-off-by: Krzysztof Mazur --- Tested on Linux 3.7-rc6 + small patch. After fixing this I found similar problem: http://marc.info/?l=linux-kernel&m=135298612202547&w=2 drivers/input/mousedev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 8f02e3d..fc711a8 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c @@ -13,7 +13,7 @@ #define MOUSEDEV_MINOR_BASE 32 #define MOUSEDEV_MINORS 32 -#define MOUSEDEV_MIX 31 +#define MOUSEDEV_MIX (MOUSEDEV_MINOR_BASE + 31) #include #include