BACKPORT: i2c / ACPI: Use 0 to indicate that device does not have interrupt assigned

This is the convention used in most parts of the kernel including DT
counterpart of I2C slave enumeration. To make things consistent do the same
for ACPI I2C slave enumeration path as well.

Change-Id: I963d36cfc560bea43bdac7b0abd3784af3aac89d
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bogdan Davidoaia <bogdan.m.davidoaia@intel.com>
Signed-off-by: Robert Dolca <robert.dolca@intel.com>
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index f49e7e1..d543fc9 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1145,7 +1145,7 @@
 								I2C_CLIENT_TEN;
 			rcs_info->count++;
 		}
-	} else if (rcs_info->common_irq < 0) {
+	} else if (!rcs_info->common_irq) {
 		struct resource r;
 
 		if (acpi_dev_resource_interrupt(ares, 0, &r)) {
@@ -1179,7 +1179,7 @@
 	info.acpi_node.companion = adev;
 
 	memset(&rcs_info, 0, sizeof(rcs_info));
-	rcs_info.common_irq = -1;
+	rcs_info.common_irq = 0;
 
 	INIT_LIST_HEAD(&resource_list);
 	ret = acpi_dev_get_resources(adev, &resource_list,