|
@@ -48,6 +48,7 @@
|
|
#include <linux/hwmon-vid.h>
|
|
#include <linux/hwmon-vid.h>
|
|
#include <linux/err.h>
|
|
#include <linux/err.h>
|
|
#include <linux/mutex.h>
|
|
#include <linux/mutex.h>
|
|
|
|
+#include <linux/acpi.h>
|
|
#include <asm/io.h>
|
|
#include <asm/io.h>
|
|
#include "lm75.h"
|
|
#include "lm75.h"
|
|
|
|
|
|
@@ -1544,6 +1545,11 @@ static int __init sensors_w83627ehf_init(void)
|
|
res.start = address + IOREGION_OFFSET;
|
|
res.start = address + IOREGION_OFFSET;
|
|
res.end = address + IOREGION_OFFSET + IOREGION_LENGTH - 1;
|
|
res.end = address + IOREGION_OFFSET + IOREGION_LENGTH - 1;
|
|
res.flags = IORESOURCE_IO;
|
|
res.flags = IORESOURCE_IO;
|
|
|
|
+
|
|
|
|
+ err = acpi_check_resource_conflict(&res);
|
|
|
|
+ if (err)
|
|
|
|
+ goto exit;
|
|
|
|
+
|
|
err = platform_device_add_resources(pdev, &res, 1);
|
|
err = platform_device_add_resources(pdev, &res, 1);
|
|
if (err) {
|
|
if (err) {
|
|
printk(KERN_ERR DRVNAME ": Device resource addition failed "
|
|
printk(KERN_ERR DRVNAME ": Device resource addition failed "
|