Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219880
b: refs/heads/master
c: dfb7ef7
h: refs/heads/master
v: v3
  • Loading branch information
Pavan Savoy authored and Greg Kroah-Hartman committed Sep 16, 2010
1 parent ca6b21f commit 352a186
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48c51a8cf484c8d569f97050bbac493c5bc79c2f
refs/heads/master: dfb7ef7d84fa45270b0138dbe6ab4316b03cc724
9 changes: 8 additions & 1 deletion trunk/drivers/staging/ti-st/st_kim.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,14 @@ static int kim_probe(struct platform_device *pdev)
long *gpios = pdev->dev.platform_data;
struct kim_data_s *kim_gdata;

st_kim_devices[pdev->id] = pdev;
if ((pdev->id != -1) && (pdev->id < MAX_ST_DEVICES)) {
/* multiple devices could exist */
st_kim_devices[pdev->id] = pdev;
} else {
/* platform's sure about existance of 1 device */
st_kim_devices[0] = pdev;
}

kim_gdata = kzalloc(sizeof(struct kim_data_s), GFP_ATOMIC);
if (!kim_gdata) {
pr_err("no mem to allocate");
Expand Down

0 comments on commit 352a186

Please sign in to comment.