From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Michlmayr Subject: [PATCH] mv643xx_eth: Define module alias for platform device Date: Sat, 16 Feb 2008 18:16:54 +0100 Message-ID: <20080216171654.GA2835@deprecation.cyrius.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Dale Farnsworth , netdev@vger.kernel.org Return-path: Received: from sorrow.cyrius.com ([65.19.161.204]:3942 "EHLO sorrow.cyrius.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755641AbYBPRmb (ORCPT ); Sat, 16 Feb 2008 12:42:31 -0500 Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: The mv643xx_eth driver can be loaded as a platform device, as is done by various Orion (ARM) based devices. The driver needs to define a module alias for the platform driver so udev will load it automatically. Tested with Debian on a QNAP TS-209. Signed-off-by: Martin Michlmayr --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c @@ -2104,6 +2104,7 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR( "Rabeeh Khoury, Assaf Hoffman, Matthew Dharm, Manish Lachwani" " and Dale Farnsworth"); MODULE_DESCRIPTION("Ethernet driver for Marvell MV643XX"); +MODULE_ALIAS("platform:mv643xx_eth"); /* * The second part is the low level driver of the gigE ethernet ports. -- Martin Michlmayr http://www.cyrius.com/