[PATCH] mtd: powernv_flash: set of_node in mtd's dev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 13 Jul 2018 10:15:59 +0200
Rafa? Mi?ecki <zajec5 at gmail.com> wrote:

> From: Rafa? Mi?ecki <rafal at milecki.pl>
> 
> This enables some features implemented in mtd subsystem like reading
> label and partitioning info from DT.
> 
> Reported-by: Timothy Pearson <tpearson at raptorengineering.com>
> Signed-off-by: Rafa? Mi?ecki <rafal at milecki.pl>

Applied.

Thanks,

Boris

> ---
>  drivers/mtd/devices/powernv_flash.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/devices/powernv_flash.c b/drivers/mtd/devices/powernv_flash.c
> index c1312b141ae0..33593122e49b 100644
> --- a/drivers/mtd/devices/powernv_flash.c
> +++ b/drivers/mtd/devices/powernv_flash.c
> @@ -223,6 +223,7 @@ static int powernv_flash_set_driver_info(struct device *dev,
>  	mtd->_read = powernv_flash_read;
>  	mtd->_write = powernv_flash_write;
>  	mtd->dev.parent = dev;
> +	mtd_set_of_node(mtd, dev->of_node);
>  	return 0;
>  }
>  




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux