Lines Matching refs:oms
42 struct of_mmc_spi *oms = to_of_mmc_spi(dev);
44 return request_threaded_irq(oms->detect_irq, NULL, irqhandler,
50 struct of_mmc_spi *oms = to_of_mmc_spi(dev);
52 free_irq(oms->detect_irq, mmc);
59 struct of_mmc_spi *oms;
64 oms = kzalloc(sizeof(*oms), GFP_KERNEL);
65 if (!oms)
68 if (mmc_of_parse_voltage(np, &oms->pdata.ocr_mask) <= 0)
71 oms->detect_irq = irq_of_parse_and_map(np, 0);
72 if (oms->detect_irq != 0) {
73 oms->pdata.init = of_mmc_spi_init;
74 oms->pdata.exit = of_mmc_spi_exit;
76 oms->pdata.caps |= MMC_CAP_NEEDS_POLL;
79 dev->platform_data = &oms->pdata;
82 kfree(oms);
91 struct of_mmc_spi *oms = to_of_mmc_spi(dev);
96 kfree(oms);