All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Francisco Jerez <currojerez@riseup.net>,
	David Airlie <airlied@linux.ie>, Ben Skeggs <bskeggs@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Subject: [PATCH v2] drm/nouveau: Only select ACPI_VIDEO if its dependencies are met
Date: Sat, 25 Dec 2010 16:17:32 +0000	[thread overview]
Message-ID: <1293293852.2874.1009.camel@localhost> (raw)
In-Reply-To: <87mxntyj1p.fsf@riseup.net>

CONFIG_ACPI_VIDEO depends on more than just CONFIG_ACPI, so add those
dependencies to the Kconfig select condition and make the code
conditional on CONFIG_ACPI_VIDEO.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
On Sat, 2010-12-25 at 16:21 +0100, Francisco Jerez wrote:
[...]
> > --- a/drivers/gpu/drm/nouveau/Makefile
> > +++ b/drivers/gpu/drm/nouveau/Makefile
> > @@ -30,6 +30,6 @@ nouveau-y := nouveau_drv.o nouveau_state.o nouveau_channel.o nouveau_mem.o \
> >  nouveau-$(CONFIG_DRM_NOUVEAU_DEBUG) += nouveau_debugfs.o
> >  nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
> >  nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o
> > -nouveau-$(CONFIG_ACPI) += nouveau_acpi.o
> > +nouveau-$(CONFIG_ACPI_VIDEO) += nouveau_acpi.o
> >  
> Not sure this makes sense, most of the code in nouveau_acpi.c doesn't
> depend on ACPI_VIDEO at all. Do you really need to do it? Apparently all
> the ACPI_VIDEO functions will be turned into stubs (see "acpi/video.h")
> on kernels without ACPI_VIDEO support.
[...]

You're right; there's no need for the changes outside of Kconfig.

Ben.

 drivers/gpu/drm/nouveau/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig
index 72730e9..21d6c29 100644
--- a/drivers/gpu/drm/nouveau/Kconfig
+++ b/drivers/gpu/drm/nouveau/Kconfig
@@ -10,7 +10,7 @@ config DRM_NOUVEAU
 	select FB
 	select FRAMEBUFFER_CONSOLE if !EMBEDDED
 	select FB_BACKLIGHT if DRM_NOUVEAU_BACKLIGHT
-	select ACPI_VIDEO if ACPI
+	select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL && INPUT
 	help
 	  Choose this option for open-source nVidia support.
 
-- 
1.7.2.3

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

  reply	other threads:[~2010-12-25 16:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-11 20:23 [PATCH] drm/nouveau: Only select ACPI_VIDEO if its dependencies are met Ben Hutchings
2010-12-25 15:21 ` Francisco Jerez
2010-12-25 16:17   ` Ben Hutchings [this message]
2010-12-25 18:33     ` [PATCH v2] " Francisco Jerez

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=1293293852.2874.1009.camel@localhost \
    --to=ben@decadent.org.uk \
    --cc=airlied@linux.ie \
    --cc=bskeggs@redhat.com \
    --cc=currojerez@riseup.net \
    --cc=dri-devel@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.