kernel: check return code of nla_parse in pcomp_lzma on 2.6.31
[openwrt.git] / target / linux / s3c24xx / files-2.6.31 / drivers / mfd / glamo / glamo-mmc.c
1
2
3
4
5 static int __init glamo_mmc_probe(struct platform_device *pdev) {
6
7 struct mmc_host *mmc;
8 struct glamo_host *host;
9 struct resource *res;
10 int irq;
11
12 res = platform_get_resource(pdev, IO_RESOURCE_MEM, 0);
13 irq = platform_get_irq(pdev, 0);
14
15
16 res = request_mem_region(res->start, res->end - res->start + 1, pdev->name);
17
18 mmc = mmc_alloc_host(sizeof(struct glamo_host), &pdev->dev);
19
20 mmc->ops = &glamo_mmc_ops;
21
22 mmc->f_min = 0;
23 mmc->f_max = 100;
24 mmc->ocr_avail;
25
26 mmc->caps = MMC_CAP_4_BIT_DATA;
27
28 mmc->max_hw_segs;
29 mmc->max_phys_segs;
30 mmc->max_req_size;
31 mmc->max_blk_size;
32 mmc->max_blk_count;
33
34
35 mmc_add_host(mmc);
36
37 return 0;
38 }
This page took 0.04451 seconds and 5 git commands to generate.