From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id E38ACDDEE6 for ; Wed, 5 Dec 2007 05:44:25 +1100 (EST) Date: Tue, 4 Dec 2007 12:48:26 -0600 From: Olof Johansson To: Anton Vorontsov Subject: Re: [PATCH v2 2/4] [libata] pata_of_platform: OF-Platform PATA device driver Message-ID: <20071204184826.GA5758@lixom.net> References: <20071204170442.GA10460@localhost.localdomain> <20071204170719.GB15599@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20071204170719.GB15599@localhost.localdomain> Cc: Jeff Garzik , Arnd Bergmann , linux-ide@vger.kernel.org, linuxppc-dev@ozlabs.org, Paul Mundt List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, On Tue, Dec 04, 2007 at 08:07:19PM +0300, Anton Vorontsov wrote: > This driver nicely wraps around pata_platform library functions, > and provides OF platform bus bindings to the PATA devices. > > Signed-off-by: Anton Vorontsov > --- > drivers/ata/Kconfig | 10 ++++ > drivers/ata/Makefile | 1 + > drivers/ata/pata_of_platform.c | 102 ++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 113 insertions(+), 0 deletions(-) > create mode 100644 drivers/ata/pata_of_platform.c > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index ba63619..5a492fa 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -614,6 +614,16 @@ config PATA_PLATFORM > > If unsure, say N. > > +config PATA_OF_PLATFORM > + tristate "OpenFirmware platform device PATA support" > + depends on PATA_PLATFORM && PPC_OF > + help > + This option enables support for generic directly connected ATA > + devices commonly found on embedded systems with OpenFirmware > + bindings. > + > + If unsure, say N. > + There's a typo in the dependencies for PATA_PLATFORM that you should change: depends on EMBEDDED || ARCH_RPC (note ARCH_>R +static struct of_device_id pata_of_platform_match[] = { > + { .compatible = "ata-generic", }, > +}; Needs to be terminated by empty entry, and please add: MODULE_DEVICE_TABLE(of, pata_of_platform_match); -Olof