[PATCH 3/3] ARM: AT91: Add the ADC to the sam9g20ek board

Fabio Estevam festevam at gmail.com
Thu Nov 24 10:20:30 EST 2011


On Thu, Nov 24, 2011 at 9:27 AM, Maxime Ripard
<maxime.ripard at free-electrons.com> wrote:

> +static struct at91_adc_data ek_adc_data = {
> +       .channels_used = BIT(0) | BIT(1) | BIT(2) | BIT(3),
> +       .vref = 3300,
> +};

Don't you need to also pass adc_clock?

Otherwise the probe code will fail:

+
+	if (!pdata->adc_clock) {
+		dev_err(&pdev->dev, "No ADCClock available.\n");
+		ret = -EINVAL;
+		goto error_free_clk;
+	}



More information about the linux-arm-kernel mailing list