[PATCH 1/1] ahci-generic: add oftree support

Rob Herring rob.herring at calxeda.com
Tue Feb 12 08:41:05 EST 2013


On 02/12/2013 07:10 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> calxeda use the generic driver but have it's own compatible cf Linux kernel
> Documentation
> 
> Cc: Rob Herring <rob.herring at calxeda.com>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  drivers/ata/ahci-generic.c |   11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/drivers/ata/ahci-generic.c b/drivers/ata/ahci-generic.c
> index 4077627..62f2a19 100644
> --- a/drivers/ata/ahci-generic.c
> +++ b/drivers/ata/ahci-generic.c
> @@ -35,9 +35,20 @@ err_free:
>  	return ret;
>  }
>  
> +static __maybe_unused struct of_device_id ahci_dt_ids[] = {
> +	{
> +		.compatible = "ahci",

I don't believe this is a documented compatible value.

> +	}, {
> +		.compatible = "calxeda,hb-ahci",
> +	}, {
> +		/* sentinel */
> +	}
> +};
> +
>  static struct driver_d ahci_driver = {
>  	.name	= "ahci",
>  	.probe	= ahci_probe,
> +	.of_compatible = DRV_OF_COMPAT(ahci_dt_ids),
>  };
>  
>  static int ahci_init(void)
> 




More information about the barebox mailing list