Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220583
b: refs/heads/master
c: 09ff21e
h: refs/heads/master
i:
  220581: 558e98c
  220579: 428b7ce
  220575: 612d688
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Oct 28, 2010
1 parent e71d85f commit d003c48
Show file tree
Hide file tree
Showing 2 changed files with 10 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: b59cedeffaef54dd091baf01fd5e276ac50a3176
refs/heads/master: 09ff21e0f670a71ea43765cedaab9246fd81540e
10 changes: 9 additions & 1 deletion trunk/drivers/mfd/ezx-pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,20 @@ static int __devinit pcap_add_subdev(struct pcap_chip *pcap,
struct pcap_subdev *subdev)
{
struct platform_device *pdev;
int ret;

pdev = platform_device_alloc(subdev->name, subdev->id);
if (!pdev)
return -ENOMEM;

pdev->dev.parent = &pcap->spi->dev;
pdev->dev.platform_data = subdev->platform_data;

return platform_device_add(pdev);
ret = platform_device_add(pdev);
if (ret)
platform_device_put(pdev);

return ret;
}

static int __devexit ezx_pcap_remove(struct spi_device *spi)
Expand Down

0 comments on commit d003c48

Please sign in to comment.