lkml.org 
[lkml]   [2010]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add intel drm blacklist to intel_opregion_present detect
On Tue, Aug 24, 2010 at 04:08:59AM -0600, Joey Lee wrote:
> drivers/gpu/Makefile | 2 +-
> drivers/gpu/stub/Kconfig | 13 +++++++++++++
> drivers/gpu/stub/Makefile | 1 +
> drivers/gpu/stub/poulsbo.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
> drivers/video/Kconfig | 2 ++
> 5 files changed, 61 insertions(+), 1 deletions(-)
> create mode 100644 drivers/gpu/stub/Kconfig
> create mode 100644 drivers/gpu/stub/Makefile
> create mode 100644 drivers/gpu/stub/poulsbo.c
>
> diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile
> index 30879df..cc92778 100644
> --- a/drivers/gpu/Makefile
> +++ b/drivers/gpu/Makefile
> @@ -1 +1 @@
> -obj-y += drm/ vga/
> +obj-y += drm/ vga/ stub/
> diff --git a/drivers/gpu/stub/Kconfig b/drivers/gpu/stub/Kconfig
> new file mode 100644
> index 0000000..88fd919
> --- /dev/null
> +++ b/drivers/gpu/stub/Kconfig
> @@ -0,0 +1,13 @@
> +config STUB_POULSBO
> + tristate "Intel Poulsbo Stub Driver"
> + default m
> + # Poulsbo stub depends on ACPI_VIDEO when ACPI is enabled
> + # but for select to work, need to select ACPI_VIDEO's dependencies, ick
> + select ACPI_VIDEO if ACPI
> + help
> + Choose this option if you have a system that has Intel Poulsbo
> + integrated graphics. If M is selected, the module will be called
> + Poulsbo. This driver is a stub driver for Poulsbo that will call

Really? I suspect it'll be called poulsbo.ko :)

> +static int __init poulsbo_init(void)
> +{
> + printk(KERN_INFO "poulsbo: stub driver load.\n");

Don't really need to printk here

> + return acpi_video_register();
> +}
> +
> +static void __exit poulsbo_cleanup(void)
> +{
> + acpi_video_unregister();
> + printk(KERN_INFO "poulsbo: stub driver unloaded.\n");

Or here - we'll get the ACPI video output. Other than that, looks good.

--
Matthew Garrett | mjg59@srcf.ucam.org


\
 
 \ /
  Last update: 2010-08-24 16:23    [W:1.127 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site