Lines Matching defs:dev
40 static int fsl_tcon_init_regmap(struct device *dev,
50 regs = devm_ioremap_resource(dev, &res);
54 tcon->regs = devm_regmap_init_mmio(dev, regs,
59 struct fsl_tcon *fsl_tcon_init(struct device *dev)
66 np = of_parse_phandle(dev->of_node, "fsl,tcon", 0);
70 tcon = devm_kzalloc(dev, sizeof(*tcon), GFP_KERNEL);
74 ret = fsl_tcon_init_regmap(dev, tcon, np);
76 dev_err(dev, "Couldn't create the TCON regmap\n");
82 dev_err(dev, "Couldn't get the TCON bus clock\n");
88 dev_err(dev, "Couldn't enable the TCON clock\n");
93 dev_info(dev, "Using TCON in bypass mode\n");