projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xen/blkfront: use blk_rq_map_sg to generate ring entries
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
gpio
/
pca953x.c
diff --git
a/drivers/gpio/pca953x.c
b/drivers/gpio/pca953x.c
index 37f35388a2aeb7094b559bfde1a851159e9ae59f..8dc0164bd51e036af7ae4986644957cf6a4c8b94 100644
(file)
--- 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)