X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fgpio%2Fpca953x.c;h=8dc0164bd51e036af7ae4986644957cf6a4c8b94;hb=18439c39e826191c0ef08c3a3271ce7ece46a860;hp=37f35388a2aeb7094b559bfde1a851159e9ae59f;hpb=cd764695b67386a81964f68e9c66efd9f13f4d29;p=mv-sheeva.git diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index 37f35388a2a..8dc0164bd51 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -202,8 +202,10 @@ static int __devinit pca953x_probe(struct i2c_client *client, int ret; pdata = client->dev.platform_data; - if (pdata == NULL) - return -ENODEV; + if (pdata == NULL) { + dev_dbg(&client->dev, "no platform data\n"); + return -EINVAL; + } chip = kzalloc(sizeof(struct pca953x_chip), GFP_KERNEL); if (chip == NULL)