Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144827
b: refs/heads/master
c: bee8632
h: refs/heads/master
i:
  144825: 39cd949
  144823: 750311b
v: v3
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed May 9, 2009
1 parent ddb94fa commit e5de40b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 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: fe0e2bb9b3ca55b78e637b1260faeaa951523959
refs/heads/master: bee86321b7b2312fbb62f4cb903eba1cca45e8ad
15 changes: 1 addition & 14 deletions trunk/drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,20 +247,7 @@ int platform_device_add(struct platform_device *pdev)
else
dev_set_name(&pdev->dev, pdev->name);

/* We will remove platform_data field from struct device
* if all platform devices pass its platform specific data
* from platform_device. The conversion is going to be a
* long time, so we allow the two cases coexist to make
* this kind of fix more easily*/
if (pdev->platform_data && pdev->dev.platform_data) {
printk(KERN_ERR
"%s: use which platform_data?\n",
dev_name(&pdev->dev));
} else if (pdev->platform_data) {
pdev->dev.platform_data = pdev->platform_data;
} else if (pdev->dev.platform_data) {
pdev->platform_data = pdev->dev.platform_data;
}
pdev->platform_data = pdev->dev.platform_data;

for (i = 0; i < pdev->num_resources; i++) {
struct resource *p, *r = &pdev->resource[i];
Expand Down

0 comments on commit e5de40b

Please sign in to comment.