Lines Matching refs:dev
350 ret = request_firmware(&fw, fw_name, &client->dev); in s5c73m3_load_fw()
1526 struct device *dev = &state->i2c_client->dev; in s5c73m3_get_dt_data() local
1527 struct device_node *node = dev->of_node; in s5c73m3_get_dt_data()
1535 state->clock = devm_clk_get(dev, S5C73M3_CLK_NAME); in s5c73m3_get_dt_data()
1542 dev_info(dev, "using default %u Hz clock frequency\n", in s5c73m3_get_dt_data()
1547 state->stby = devm_gpiod_get(dev, "standby", GPIOD_OUT_HIGH); in s5c73m3_get_dt_data()
1549 return dev_err_probe(dev, PTR_ERR(state->stby), in s5c73m3_get_dt_data()
1552 state->reset = devm_gpiod_get(dev, "xshutdown", GPIOD_OUT_HIGH); in s5c73m3_get_dt_data()
1554 return dev_err_probe(dev, PTR_ERR(state->reset), in s5c73m3_get_dt_data()
1560 dev_warn(dev, "no endpoint defined for node: %pOF\n", node); in s5c73m3_get_dt_data()
1570 dev_err(dev, "unsupported bus type\n"); in s5c73m3_get_dt_data()
1578 dev_info(dev, "falling back to 4 MIPI CSI-2 data lanes\n"); in s5c73m3_get_dt_data()
1585 struct device *dev = &client->dev; in s5c73m3_probe() local
1591 state = devm_kzalloc(dev, sizeof(*state), GFP_KERNEL); in s5c73m3_probe()
1605 sd->owner = client->dev.driver->owner; in s5c73m3_probe()
1641 ret = devm_regulator_bulk_get(dev, S5C73M3_MAX_SUPPLIES, in s5c73m3_probe()
1644 dev_err(dev, "failed to get regulators\n"); in s5c73m3_probe()
1668 oif_sd->dev = dev; in s5c73m3_probe()
1678 dev_err(dev, "Device detection failed: %d\n", ret); in s5c73m3_probe()