linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Dooks <ben-linux@fluff.org>
To: Jeff Garzik <jeff@garzik.org>, linux-ide@vger.kernel.org
Cc: Vincent Sanders <vince@simtec.co.uk>
Subject: [PATCH] pata_platfrom: add MACH_HAS_PATA_PLATFORM configuration
Date: Mon, 19 Nov 2007 12:36:58 +0000	[thread overview]
Message-ID: <20071119123658.GI26444@trinity.fluff.org> (raw)

Add a configuration entry (MACH_HAS_PATA_PLATFORM) so that any machine
impelementing a pata_platform driver can add this to their own Kconfig
to enable the PATA_PLATFORM driver.

This will avoid multiple patches to the drivers/ata/Kconfig when new
machine support is added.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>

diff -urpN -X linux-2.6.24-rc3/Documentation/dontdiff linux-2.6.24-rc3/drivers/ata/Kconfig linux-2.6.24-rc3-pata1/drivers/ata/Kconfig
--- linux-2.6.24-rc3/drivers/ata/Kconfig	2007-10-09 21:31:38.000000000 +0100
+++ linux-2.6.24-rc3-pata1/drivers/ata/Kconfig	2007-11-19 12:25:03.000000000 +0000
@@ -560,9 +560,17 @@ config PATA_WINBOND_VLB
 	  Support for the Winbond W83759A controller on Vesa Local Bus
 	  systems.
 
+config MACH_HAS_PATA_PLATFORM
+	bool
+	help
+	  This is an internal configuration node for any machine that
+	  uses pata-platform driver to enable the relevant driver in the
+	  configuration structure without having to submit endless patches
+	  to update the PATA_PLATFORM entry.
+
 config PATA_PLATFORM
 	tristate "Generic platform device PATA support"
-	depends on EMBEDDED || ARCH_RPC
+	depends on EMBEDDED || ARCH_RPC || MACH_HAS_PATA_PLATFORM
 	help
 	  This option enables support for generic directly connected ATA
 	  devices commonly found on embedded systems.

                 reply	other threads:[~2007-11-19 12:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071119123658.GI26444@trinity.fluff.org \
    --to=ben-linux@fluff.org \
    --cc=jeff@garzik.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=vince@simtec.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).