Lines Matching refs:spi
661 static int wm8731_spi_probe(struct spi_device *spi) in wm8731_spi_probe() argument
666 wm8731 = devm_kzalloc(&spi->dev, sizeof(*wm8731), GFP_KERNEL); in wm8731_spi_probe()
670 wm8731->mclk = devm_clk_get(&spi->dev, "mclk"); in wm8731_spi_probe()
675 dev_warn(&spi->dev, "Assuming static MCLK\n"); in wm8731_spi_probe()
677 dev_err(&spi->dev, "Failed to get MCLK: %d\n", in wm8731_spi_probe()
685 spi_set_drvdata(spi, wm8731); in wm8731_spi_probe()
687 ret = wm8731_request_supplies(&spi->dev, wm8731); in wm8731_spi_probe()
691 wm8731->regmap = devm_regmap_init_spi(spi, &wm8731_regmap); in wm8731_spi_probe()
694 dev_err(&spi->dev, "Failed to allocate register map: %d\n", in wm8731_spi_probe()
699 ret = wm8731_hw_init(&spi->dev, wm8731); in wm8731_spi_probe()
703 ret = devm_snd_soc_register_component(&spi->dev, in wm8731_spi_probe()
706 dev_err(&spi->dev, "Failed to register CODEC: %d\n", ret); in wm8731_spi_probe()
713 static int wm8731_spi_remove(struct spi_device *spi) in wm8731_spi_remove() argument