Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192153
b: refs/heads/master
c: 5d4f77f
h: refs/heads/master
i:
  192151: 5f4a917
v: v3
  • Loading branch information
San Mehat authored and Daniel Walker committed May 12, 2010
1 parent 85ba868 commit d0224de
Show file tree
Hide file tree
Showing 2 changed files with 23 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: c68af41d2dbfaa054e5dd15a4df699429ee8a0ad
refs/heads/master: 5d4f77ffefdcfbe9432db371126b74478964b4a0
22 changes: 22 additions & 0 deletions trunk/arch/arm/mach-msm/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>

#include <mach/mmc.h>

static struct resource resources_uart1[] = {
{
.start = INT_UART1,
Expand Down Expand Up @@ -266,3 +268,23 @@ struct platform_device msm_device_sdc4 = {
.coherent_dma_mask = 0xffffffff,
},
};

static struct platform_device *msm_sdcc_devices[] __initdata = {
&msm_device_sdc1,
&msm_device_sdc2,
&msm_device_sdc3,
&msm_device_sdc4,
};

int __init msm_add_sdcc(unsigned int controller, struct mmc_platform_data *plat)
{
struct platform_device *pdev;

if (controller < 1 || controller > 4)
return -EINVAL;

pdev = msm_sdcc_devices[controller-1];
pdev->dev.platform_data = plat;
return platform_device_register(pdev);
}

0 comments on commit d0224de

Please sign in to comment.