Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271648
b: refs/heads/master
c: 5720642
h: refs/heads/master
v: v3
  • Loading branch information
Andy Shevchenko authored and Mauro Carvalho Chehab committed Aug 6, 2011
1 parent f4c749c commit 7e94800
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 680417bb318adc5f1f8f392730776176fbcdedd8
refs/heads/master: 572064280ecc9dc89227cf3797bc2144896a34f5
4 changes: 4 additions & 0 deletions trunk/drivers/media/video/adp1653.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ static int adp1653_probe(struct i2c_client *client,
struct adp1653_flash *flash;
int ret;

/* we couldn't work without platform data */
if (client->dev.platform_data == NULL)
return -ENODEV;

flash = kzalloc(sizeof(*flash), GFP_KERNEL);
if (flash == NULL)
return -ENOMEM;
Expand Down

0 comments on commit 7e94800

Please sign in to comment.