Searched refs:ltq_mtd (Results 1 – 1 of 1) sorted by relevance
41 struct ltq_mtd { struct115 struct ltq_mtd *ltq_mtd; in ltq_mtd_probe() local120 ltq_mtd = kzalloc(sizeof(struct ltq_mtd), GFP_KERNEL); in ltq_mtd_probe()121 platform_set_drvdata(pdev, ltq_mtd); in ltq_mtd_probe()123 ltq_mtd->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ltq_mtd_probe()124 if (!ltq_mtd->res) { in ltq_mtd_probe()130 res = devm_request_mem_region(&pdev->dev, ltq_mtd->res->start, in ltq_mtd_probe()131 resource_size(ltq_mtd->res), dev_name(&pdev->dev)); in ltq_mtd_probe()132 if (!ltq_mtd->res) { in ltq_mtd_probe()138 ltq_mtd->map = kzalloc(sizeof(struct map_info), GFP_KERNEL); in ltq_mtd_probe()[all …]