public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mtd: lpddr: use mtd_device_register()
@ 2018-07-21 11:55 Rafał Miłecki
  2018-07-21 11:55 ` [PATCH 2/2] mtd: spi-nor: intel-spi: " Rafał Miłecki
  2018-07-24  5:57 ` [PATCH 1/2] mtd: lpddr: " Boris Brezillon
  0 siblings, 2 replies; 4+ messages in thread
From: Rafał Miłecki @ 2018-07-21 11:55 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
	Richard Weinberger
  Cc: Miquel Raynal, Bert Kenward, linux-mtd, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

This driver doesn't specify parsers so it can use that little helper.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 drivers/mtd/lpddr/lpddr2_nvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/lpddr/lpddr2_nvm.c b/drivers/mtd/lpddr/lpddr2_nvm.c
index 5d73db2a496d..c950c880ad59 100644
--- a/drivers/mtd/lpddr/lpddr2_nvm.c
+++ b/drivers/mtd/lpddr/lpddr2_nvm.c
@@ -476,7 +476,7 @@ static int lpddr2_nvm_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 	/* Parse partitions and register the MTD device */
-	return mtd_device_parse_register(mtd, NULL, NULL, NULL, 0);
+	return mtd_device_register(mtd, NULL, 0);
 }
 
 /*
-- 
2.13.7

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] mtd: spi-nor: intel-spi: use mtd_device_register()
  2018-07-21 11:55 [PATCH 1/2] mtd: lpddr: use mtd_device_register() Rafał Miłecki
@ 2018-07-21 11:55 ` Rafał Miłecki
  2018-07-24  8:42   ` Boris Brezillon
  2018-07-24  5:57 ` [PATCH 1/2] mtd: lpddr: " Boris Brezillon
  1 sibling, 1 reply; 4+ messages in thread
From: Rafał Miłecki @ 2018-07-21 11:55 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
	Richard Weinberger
  Cc: Miquel Raynal, Bert Kenward, linux-mtd, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

This driver doesn't specify parsers so it can use that little helper.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 drivers/mtd/spi-nor/intel-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c
index d2cbfc27826e..af0a22019516 100644
--- a/drivers/mtd/spi-nor/intel-spi.c
+++ b/drivers/mtd/spi-nor/intel-spi.c
@@ -908,7 +908,7 @@ struct intel_spi *intel_spi_probe(struct device *dev,
 	if (!ispi->writeable || !writeable)
 		ispi->nor.mtd.flags &= ~MTD_WRITEABLE;
 
-	ret = mtd_device_parse_register(&ispi->nor.mtd, NULL, NULL, &part, 1);
+	ret = mtd_device_register(&ispi->nor.mtd, &part, 1);
 	if (ret)
 		return ERR_PTR(ret);
 
-- 
2.13.7

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] mtd: lpddr: use mtd_device_register()
  2018-07-21 11:55 [PATCH 1/2] mtd: lpddr: use mtd_device_register() Rafał Miłecki
  2018-07-21 11:55 ` [PATCH 2/2] mtd: spi-nor: intel-spi: " Rafał Miłecki
@ 2018-07-24  5:57 ` Boris Brezillon
  1 sibling, 0 replies; 4+ messages in thread
From: Boris Brezillon @ 2018-07-24  5:57 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
	Richard Weinberger, Miquel Raynal, Bert Kenward, linux-mtd,
	Rafał Miłecki

On Sat, 21 Jul 2018 13:55:09 +0200
Rafał Miłecki <zajec5@gmail.com> wrote:

> From: Rafał Miłecki <rafal@milecki.pl>
> 
> This driver doesn't specify parsers so it can use that little helper.
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>

Applied this one to mtd/next.

> ---
>  drivers/mtd/lpddr/lpddr2_nvm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/lpddr/lpddr2_nvm.c b/drivers/mtd/lpddr/lpddr2_nvm.c
> index 5d73db2a496d..c950c880ad59 100644
> --- a/drivers/mtd/lpddr/lpddr2_nvm.c
> +++ b/drivers/mtd/lpddr/lpddr2_nvm.c
> @@ -476,7 +476,7 @@ static int lpddr2_nvm_probe(struct platform_device *pdev)
>  		return -EINVAL;
>  	}
>  	/* Parse partitions and register the MTD device */
> -	return mtd_device_parse_register(mtd, NULL, NULL, NULL, 0);
> +	return mtd_device_register(mtd, NULL, 0);
>  }
>  
>  /*

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] mtd: spi-nor: intel-spi: use mtd_device_register()
  2018-07-21 11:55 ` [PATCH 2/2] mtd: spi-nor: intel-spi: " Rafał Miłecki
@ 2018-07-24  8:42   ` Boris Brezillon
  0 siblings, 0 replies; 4+ messages in thread
From: Boris Brezillon @ 2018-07-24  8:42 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
	Richard Weinberger, Miquel Raynal, Bert Kenward, linux-mtd,
	Rafał Miłecki

On Sat, 21 Jul 2018 13:55:10 +0200
Rafał Miłecki <zajec5@gmail.com> wrote:

> From: Rafał Miłecki <rafal@milecki.pl>
> 
> This driver doesn't specify parsers so it can use that little helper.
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>

Applied to spi-nor/next.

> ---
>  drivers/mtd/spi-nor/intel-spi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c
> index d2cbfc27826e..af0a22019516 100644
> --- a/drivers/mtd/spi-nor/intel-spi.c
> +++ b/drivers/mtd/spi-nor/intel-spi.c
> @@ -908,7 +908,7 @@ struct intel_spi *intel_spi_probe(struct device *dev,
>  	if (!ispi->writeable || !writeable)
>  		ispi->nor.mtd.flags &= ~MTD_WRITEABLE;
>  
> -	ret = mtd_device_parse_register(&ispi->nor.mtd, NULL, NULL, &part, 1);
> +	ret = mtd_device_register(&ispi->nor.mtd, &part, 1);
>  	if (ret)
>  		return ERR_PTR(ret);
>  

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-24  8:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-21 11:55 [PATCH 1/2] mtd: lpddr: use mtd_device_register() Rafał Miłecki
2018-07-21 11:55 ` [PATCH 2/2] mtd: spi-nor: intel-spi: " Rafał Miłecki
2018-07-24  8:42   ` Boris Brezillon
2018-07-24  5:57 ` [PATCH 1/2] mtd: lpddr: " Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox