Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108154
b: refs/heads/master
c: d2432a6
h: refs/heads/master
v: v3
  • Loading branch information
Ian Molton authored and Samuel Ortiz committed Aug 10, 2008
1 parent e7609c7 commit ff3e697
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 56bf2bda0651ca368a259468e4f309c71ed35c35
refs/heads/master: d2432a6321b8f578018690d0c5384ee5de19737d
11 changes: 10 additions & 1 deletion trunk/drivers/mfd/tc6387xb.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#include <linux/mfd/tmio.h>
#include <linux/mfd/tc6387xb.h>

enum {
TC6387XB_CELL_MMC,
};

#ifdef CONFIG_PM
static int tc6387xb_suspend(struct platform_device *dev, pm_message_t state)
{
Expand Down Expand Up @@ -87,7 +91,7 @@ static struct resource tc6387xb_mmc_resources[] = {
};

static struct mfd_cell tc6387xb_cells[] = {
{
[TC6387XB_CELL_MMC] = {
.name = "tmio-mmc",
.enable = tc6387xb_mmc_enable,
.disable = tc6387xb_mmc_disable,
Expand Down Expand Up @@ -119,6 +123,11 @@ static int tc6387xb_probe(struct platform_device *dev)

printk(KERN_INFO "Toshiba tc6387xb initialised\n");

tc6387xb_cells[TC6387XB_CELL_MMC].platform_data =
&tc6387xb_cells[TC6387XB_CELL_MMC];
tc6387xb_cells[TC6387XB_CELL_MMC].data_size =
sizeof(tc6387xb_cells[TC6387XB_CELL_MMC]);

ret = mfd_add_devices(&dev->dev, dev->id, tc6387xb_cells,
ARRAY_SIZE(tc6387xb_cells), iomem, irq);

Expand Down

0 comments on commit ff3e697

Please sign in to comment.