Lines Matching refs:dev
686 dev_err(&rdev->dev, "do not support this mode\n"); in rk8xx_set_suspend_mode()
703 dev_err(&rdev->dev, "do not support this mode\n"); in rk8xx_set_mode()
1628 static int rk808_regulator_dt_parse_pdata(struct device *dev, in rk808_regulator_dt_parse_pdata() argument
1635 np = of_get_child_by_name(dev->of_node, "regulators"); in rk808_regulator_dt_parse_pdata()
1641 devm_gpiod_get_index_optional(dev, "dvs", i, in rk808_regulator_dt_parse_pdata()
1645 dev_err(dev, "failed to get dvs%d gpio (%d)\n", i, ret); in rk808_regulator_dt_parse_pdata()
1650 dev_info(dev, "there is no dvs%d gpio\n", i); in rk808_regulator_dt_parse_pdata()
1667 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_regulator_probe()
1675 pdev->dev.of_node = pdev->dev.parent->of_node; in rk808_regulator_probe()
1676 pdev->dev.of_node_reused = true; in rk808_regulator_probe()
1678 regmap = dev_get_regmap(pdev->dev.parent, NULL); in rk808_regulator_probe()
1682 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in rk808_regulator_probe()
1686 ret = rk808_regulator_dt_parse_pdata(&pdev->dev, regmap, pdata); in rk808_regulator_probe()
1718 dev_err(&pdev->dev, "unsupported RK8XX ID %lu\n", in rk808_regulator_probe()
1723 config.dev = &pdev->dev; in rk808_regulator_probe()
1729 rk808_rdev = devm_regulator_register(&pdev->dev, in rk808_regulator_probe()
1732 return dev_err_probe(&pdev->dev, PTR_ERR(rk808_rdev), in rk808_regulator_probe()