Lines Matching refs:mtd
7 #include <linux/mtd/mtd.h>
8 #include <linux/mtd/partitions.h>
35 struct mtd_info *mtd;
43 list = of_get_property(np, "mediatek,mtd-eeprom", &size);
59 mtd = get_mtd_device_nm(part);
60 if (IS_ERR(mtd)) {
61 ret = PTR_ERR(mtd);
71 ret = mtd_read(mtd, offset, len, &retlen, eep);
72 put_mtd_device(mtd);
76 dev_err(dev->dev, "reading EEPROM from mtd %s failed: %i\n",