Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757557AbZCJQrr (ORCPT ); Tue, 10 Mar 2009 12:47:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755542AbZCJQnv (ORCPT ); Tue, 10 Mar 2009 12:43:51 -0400 Received: from zelda.netsplit.com ([87.194.19.211]:34633 "EHLO zelda.netsplit.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755676AbZCJQnm (ORCPT ); Tue, 10 Mar 2009 12:43:42 -0400 Message-Id: <6a6e566959d30a7e03d677bcb5f68f71d1988e9d.1236702228.git.scott@canonical.com> In-Reply-To: References: From: Tim Gardner Date: Wed, 4 Mar 2009 20:55:52 -0700 Subject: [PATCH 29/31] esp: Auto-load esp module when device opened. To: linux-kernel@vger.kernel.org Cc: arobinso@nyx.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1235 Lines: 39 The esp module is missing the char-major-57-* alias that would cause it to be auto-loaded when a device of that type is opened. This patch adds the alias. Signed-off-by: Scott James Remnant Signed-off-by: Tim Gardner --- drivers/char/esp.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/char/esp.c b/drivers/char/esp.c index 45ec263..0a643f6 100644 --- a/drivers/char/esp.c +++ b/drivers/char/esp.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -85,6 +86,8 @@ static unsigned int rx_timeout = ESP_RX_TMOUT; static unsigned int pio_threshold = ESP_PIO_THRESHOLD; MODULE_LICENSE("GPL"); +MODULE_ALIAS_CHARDEV_MAJOR(ESP_IN_MAJOR); + module_param_array(irq, int, NULL, 0); module_param_array(divisor, uint, NULL, 0); -- 1.6.0.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/