openwrtv3/target/linux/s3c24xx/files-2.6.31/drivers/mfd/glamo/glamo-mmc.c
Lars-Peter Clausen f2c1e05f37 Add 2.6.31 patches
SVN-Revision: 17665
2009-09-21 18:29:46 +00:00

38 lines
642 B
C

static int __init glamo_mmc_probe(struct platform_device *pdev) {
struct mmc_host *mmc;
struct glamo_host *host;
struct resource *res;
int irq;
res = platform_get_resource(pdev, IO_RESOURCE_MEM, 0);
irq = platform_get_irq(pdev, 0);
res = request_mem_region(res->start, res->end - res->start + 1, pdev->name);
mmc = mmc_alloc_host(sizeof(struct glamo_host), &pdev->dev);
mmc->ops = &glamo_mmc_ops;
mmc->f_min = 0;
mmc->f_max = 100;
mmc->ocr_avail;
mmc->caps = MMC_CAP_4_BIT_DATA;
mmc->max_hw_segs;
mmc->max_phys_segs;
mmc->max_req_size;
mmc->max_blk_size;
mmc->max_blk_count;
mmc_add_host(mmc);
return 0;
}