Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365653
b: refs/heads/master
c: 46e1915
h: refs/heads/master
i:
  365651: 61b9723
v: v3
  • Loading branch information
Andrew Bresticker authored and Linus Torvalds committed Apr 30, 2013
1 parent c3954b9 commit c523038
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 40d88fc60d426b0e1306adf6ec0be9da164e5d2a
refs/heads/master: 46e1915eef9c0e935a09808a30e167abb857b4ec
6 changes: 6 additions & 0 deletions trunk/drivers/video/backlight/platform_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ static int platform_lcd_probe(struct platform_device *pdev)
return -EINVAL;
}

if (pdata->probe) {
err = pdata->probe(pdata);
if (err)
return err;
}

plcd = devm_kzalloc(&pdev->dev, sizeof(struct platform_lcd),
GFP_KERNEL);
if (!plcd) {
Expand Down
1 change: 1 addition & 0 deletions trunk/include/video/platform_lcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ struct plat_lcd_data;
struct fb_info;

struct plat_lcd_data {
int (*probe)(struct plat_lcd_data *);
void (*set_power)(struct plat_lcd_data *, unsigned int power);
int (*match_fb)(struct plat_lcd_data *, struct fb_info *);
};
Expand Down

0 comments on commit c523038

Please sign in to comment.