* [PATCH] mtd: powernv_flash: set of_node in mtd's dev
@ 2018-07-13 8:15 Rafał Miłecki
2018-07-18 18:27 ` Boris Brezillon
0 siblings, 1 reply; 2+ messages in thread
From: Rafał Miłecki @ 2018-07-13 8:15 UTC (permalink / raw)
To: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
Richard Weinberger
Cc: linux-mtd, Benjamin Herrenschmidt, Paul Mackerras,
Michael Ellerman, Cyril Bur, Miquel Raynal, linuxppc-dev,
Timothy Pearson, Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
This enables some features implemented in mtd subsystem like reading
label and partitioning info from DT.
Reported-by: Timothy Pearson <tpearson@raptorengineering.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
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;
}
--
2.13.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: powernv_flash: set of_node in mtd's dev
2018-07-13 8:15 [PATCH] mtd: powernv_flash: set of_node in mtd's dev Rafał Miłecki
@ 2018-07-18 18:27 ` Boris Brezillon
0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2018-07-18 18:27 UTC (permalink / raw)
To: Rafał Miłecki
Cc: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
Richard Weinberger, Benjamin Herrenschmidt, Timothy Pearson,
linux-mtd, Michael Ellerman, Miquel Raynal,
Rafał Miłecki, Paul Mackerras, linuxppc-dev, Cyril Bur
On Fri, 13 Jul 2018 10:15:59 +0200
Rafa=C5=82 Mi=C5=82ecki <zajec5@gmail.com> wrote:
> From: Rafa=C5=82 Mi=C5=82ecki <rafal@milecki.pl>
>=20
> This enables some features implemented in mtd subsystem like reading
> label and partitioning info from DT.
>=20
> Reported-by: Timothy Pearson <tpearson@raptorengineering.com>
> Signed-off-by: Rafa=C5=82 Mi=C5=82ecki <rafal@milecki.pl>
Applied.
Thanks,
Boris
> ---
> drivers/mtd/devices/powernv_flash.c | 1 +
> 1 file changed, 1 insertion(+)
>=20
> diff --git a/drivers/mtd/devices/powernv_flash.c b/drivers/mtd/devices/po=
wernv_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 devic=
e *dev,
> mtd->_read =3D powernv_flash_read;
> mtd->_write =3D powernv_flash_write;
> mtd->dev.parent =3D dev;
> + mtd_set_of_node(mtd, dev->of_node);
> return 0;
> }
> =20
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-18 18:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-13 8:15 [PATCH] mtd: powernv_flash: set of_node in mtd's dev Rafał Miłecki
2018-07-18 18:27 ` Boris Brezillon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).