[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1193236387.4590.230.camel@queen.suse.de>
Date: Wed, 24 Oct 2007 16:33:07 +0200
From: Thomas Renninger <trenn@...e.de>
To: linux-acpi <linux-acpi@...r.kernel.org>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Len Brown <lenb@...nel.org>, Andrew Morton <akpm@...l.org>,
Jean Delvare <khali@...ux-fr.org>
Subject: [Fwd: [PATCH 3/5] Export acpi_check_resource_conflict]
Export acpi_check_resource_conflict(), sometimes drivers already have
a struct resource at hand so no need to use the wrappers to build a new
one.
Signed-off-by: Jean Delvare <jdelvare@...e.de>
---
drivers/acpi/osl.c | 3 ++-
include/linux/acpi.h | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
--- linux-2.6.24-rc0.orig/drivers/acpi/osl.c 2007-10-21 14:36:08.000000000 +0200
+++ linux-2.6.24-rc0/drivers/acpi/osl.c 2007-10-21 14:36:13.000000000 +0200
@@ -1097,7 +1097,7 @@ __setup("acpi_enforce_resources=", acpi_
/* Check for resource conflicts between ACPI OperationRegions and native
* drivers */
-static int acpi_check_resource_conflict(struct resource *res)
+int acpi_check_resource_conflict(struct resource *res)
{
struct acpi_res_list *res_list_elem;
int ioport;
@@ -1147,6 +1147,7 @@ static int acpi_check_resource_conflict(
}
return 0;
}
+EXPORT_SYMBOL(acpi_check_resource_conflict);
int acpi_check_region(resource_size_t start, resource_size_t n,
const char *name)
--- linux-2.6.24-rc0.orig/include/linux/acpi.h 2007-10-21 14:36:00.000000000 +0200
+++ linux-2.6.24-rc0/include/linux/acpi.h 2007-10-21 14:36:13.000000000 +0200
@@ -123,6 +123,8 @@ extern int pci_mmcfg_config_num;
extern int sbf_port;
extern unsigned long acpi_realmode_flags;
+int acpi_check_resource_conflict(struct resource *res);
+
int acpi_check_region(resource_size_t start, resource_size_t n,
const char *name);
int acpi_check_mem_region(resource_size_t start, resource_size_t n,
@@ -131,6 +133,9 @@ int acpi_check_mem_region(resource_size_
#define acpi_mp_config 0
+static inline int acpi_check_resource_conflict(struct resource *res)
+{ return 0; }
+
static inline int acpi_check_region(resource_size_t start, resource_size_t n,
const char *name) { return 0 };
--
Thomas Renninger
Research and Developement Departement
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg
Phone: +49 (0)911 - 740 53 675
e-mail: trenn@...e.de
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists