public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: unsigned cannot be less than 0.
@ 2009-03-01 22:22 Roel Kluin
  2009-03-16  2:42 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-03-01 22:22 UTC (permalink / raw)
  To: carlos; +Cc: linux-acpi, Andrew Morton

include/linux/pci-acpi.h:74:
typedef u32                 acpi_status;
------------------------------>8-------------8<---------------------------------
result is unsigned, so an error returned by acpi_bus_register_driver() will not
be noticed.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index 8a8b377..2f269e1 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -708,7 +708,7 @@ static int __init acpi_wmi_add(struct acpi_device *device)
 
 static int __init acpi_wmi_init(void)
 {
-	acpi_status result;
+	int result;
 
 	INIT_LIST_HEAD(&wmi_blocks.list);
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: unsigned cannot be less than 0.
  2009-03-01 22:22 [PATCH] ACPI: unsigned cannot be less than 0 Roel Kluin
@ 2009-03-16  2:42 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2009-03-16  2:42 UTC (permalink / raw)
  To: Roel Kluin; +Cc: carlos, linux-acpi, Andrew Morton

applied
thanks,
Len Brown, Intel Open Source Technology Center

On Sun, 1 Mar 2009, Roel Kluin wrote:

> include/linux/pci-acpi.h:74:
> typedef u32                 acpi_status;
> ------------------------------>8-------------8<---------------------------------
> result is unsigned, so an error returned by acpi_bus_register_driver() will not
> be noticed.
> 
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
> index 8a8b377..2f269e1 100644
> --- a/drivers/platform/x86/wmi.c
> +++ b/drivers/platform/x86/wmi.c
> @@ -708,7 +708,7 @@ static int __init acpi_wmi_add(struct acpi_device *device)
>  
>  static int __init acpi_wmi_init(void)
>  {
> -	acpi_status result;
> +	int result;
>  
>  	INIT_LIST_HEAD(&wmi_blocks.list);
>  
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-16  2:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-01 22:22 [PATCH] ACPI: unsigned cannot be less than 0 Roel Kluin
2009-03-16  2:42 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox