Shawn Guo wrote:

> It adds device tree probe support for mtd_dataflash driver.
>
> Signed-off-by: Shawn Guo <shawn....@linaro.org>
> Cc: Grant Likely <grant.lik...@secretlab.ca>
> Cc: David Woodhouse <dw...@infradead.org>
> Cc: Artem Bityutskiy <artem.bityuts...@nokia.com>
> ---
>  drivers/mtd/devices/mtd_dataflash.c |   12 +++++++++++-
>  1 files changed, 11 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/devices/mtd_dataflash.c 
> b/drivers/mtd/devices/mtd_dataflash.c
> index 8f6b02c..64d7242 100644
> --- a/drivers/mtd/devices/mtd_dataflash.c
> +++ b/drivers/mtd/devices/mtd_dataflash.c
> @@ -24,6 +24,8 @@
>  #include <linux/mtd/mtd.h>
>  #include <linux/mtd/partitions.h>
>  
> +#include <linux/of.h>
> +#include <linux/of_device.h>
>  
>  /*
>   * DataFlash is a kind of SPI flash.  Most AT45 chips have two buffers in
> @@ -98,6 +100,11 @@ struct dataflash {
>       struct mtd_info         mtd;
>  };
>  
> +static const struct of_device_id dataflash_dt_ids[] = {
> +     { .compatible = "atmel,dataflash", },

Please add also smth. like atmel,at45 to be more descriptive (probably
single at45 entry will be sufficient).


-- 
With best wishes
Dmitry



_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to