i2c-pxa: Fix adapter number

It turns out that platform_device.id is a "u32" so testing it for being
nonnegative is useless when setting up an i2c adapte. Instead,
do what the platform_bus code does and test it against the value "-1".

Signed-off-by: Jean Delvare <khali@linux-fr.org>

authored by Jean Delvare and committed by Jean Delvare 51e5709a 9a3180e7

+1 -1
+1 -1
drivers/i2c/busses/i2c-pxa.c
··· 926 926 * The reason to do so is to avoid sysfs names that only make 927 927 * sense when there are multiple adapters. 928 928 */ 929 - i2c->adap.nr = dev->id >= 0 ? dev->id : 0; 929 + i2c->adap.nr = dev->id != -1 ? dev->id : 0; 930 930 931 931 ret = i2c_add_numbered_adapter(&i2c->adap); 932 932 if (ret < 0) {