diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-03-26 21:38:49 -0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-03-28 23:31:43 -0400 |
commit | 62a6d7fd9bc1d85f9aae734c46234e88fa839db0 (patch) | |
tree | 7f10e852ab1be04b45d39ffb056b16f1b97a4810 /drivers/acpi/dock.c | |
parent | ac122bb64b0d51f0512185d3522a75f3f3a80bc9 (diff) | |
download | kernel-crypto-62a6d7fd9bc1d85f9aae734c46234e88fa839db0.tar.gz kernel-crypto-62a6d7fd9bc1d85f9aae734c46234e88fa839db0.tar.xz kernel-crypto-62a6d7fd9bc1d85f9aae734c46234e88fa839db0.zip |
ACPI: dock: use NULL for pointer
Use NULL instead of 0 for pointers:
drivers/acpi/dock.c:677:75: warning: Using plain integer as NULL pointer
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r-- | drivers/acpi/dock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 811b1aac65d..4546bf873ae 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -29,6 +29,7 @@ #include <linux/notifier.h> #include <linux/platform_device.h> #include <linux/jiffies.h> +#include <linux/stddef.h> #include <acpi/acpi_bus.h> #include <acpi/acpi_drivers.h> @@ -674,7 +675,7 @@ static ssize_t show_dock_uid(struct device *dev, struct device_attribute *attr, char *buf) { unsigned long lbuf; - acpi_status status = acpi_evaluate_integer(dock_station->handle, "_UID", 0, &lbuf); + acpi_status status = acpi_evaluate_integer(dock_station->handle, "_UID", NULL, &lbuf); if(ACPI_FAILURE(status)) { return 0; } |