* [PATCH 0/2] Fix some issues about NVMEM
@ 2020-05-22 7:50 Tiezhu Yang
2020-05-22 7:51 ` [PATCH 1/2] nvmem: sprd: Fix return value of sprd_efuse_probe() Tiezhu Yang
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tiezhu Yang @ 2020-05-22 7:50 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: linux-kernel, Xuefeng Li, Tiezhu Yang
This patch series is based on the latest Linus' tree.
Tiezhu Yang (2):
nvmem: sprd: Fix return value of sprd_efuse_probe()
MAINTAINERS: Add git tree for NVMEM FRAMEWORK
MAINTAINERS | 1 +
drivers/nvmem/sprd-efuse.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
--
2.1.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] nvmem: sprd: Fix return value of sprd_efuse_probe()
2020-05-22 7:50 [PATCH 0/2] Fix some issues about NVMEM Tiezhu Yang
@ 2020-05-22 7:51 ` Tiezhu Yang
2020-05-22 7:51 ` [PATCH 2/2] MAINTAINERS: Add git tree for NVMEM FRAMEWORK Tiezhu Yang
2020-05-22 11:36 ` [PATCH 0/2] Fix some issues about NVMEM Srinivas Kandagatla
2 siblings, 0 replies; 4+ messages in thread
From: Tiezhu Yang @ 2020-05-22 7:51 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: linux-kernel, Xuefeng Li, Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.
Fixes: 096030e7f449 ("nvmem: sprd: Add Spreadtrum SoCs eFuse support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
drivers/nvmem/sprd-efuse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvmem/sprd-efuse.c b/drivers/nvmem/sprd-efuse.c
index 925feb2..5952324 100644
--- a/drivers/nvmem/sprd-efuse.c
+++ b/drivers/nvmem/sprd-efuse.c
@@ -378,8 +378,8 @@ static int sprd_efuse_probe(struct platform_device *pdev)
return -ENOMEM;
efuse->base = devm_platform_ioremap_resource(pdev, 0);
- if (!efuse->base)
- return -ENOMEM;
+ if (IS_ERR(efuse->base))
+ return PTR_ERR(efuse->base);
ret = of_hwspin_lock_get_id(np, 0);
if (ret < 0) {
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] MAINTAINERS: Add git tree for NVMEM FRAMEWORK
2020-05-22 7:50 [PATCH 0/2] Fix some issues about NVMEM Tiezhu Yang
2020-05-22 7:51 ` [PATCH 1/2] nvmem: sprd: Fix return value of sprd_efuse_probe() Tiezhu Yang
@ 2020-05-22 7:51 ` Tiezhu Yang
2020-05-22 11:36 ` [PATCH 0/2] Fix some issues about NVMEM Srinivas Kandagatla
2 siblings, 0 replies; 4+ messages in thread
From: Tiezhu Yang @ 2020-05-22 7:51 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: linux-kernel, Xuefeng Li, Tiezhu Yang
There is no git tree for NVMEM FRAMEWORK in MAINTAINERS, it is not
convinent to rebase, add it.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7b58ca2..bd268978 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12100,6 +12100,7 @@ F: drivers/nvme/target/
NVMEM FRAMEWORK
M: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
S: Maintained
+T: git git://git.kernel.org/pub/scm/linux/kernel/git/srini/nvmem.git
F: Documentation/ABI/stable/sysfs-bus-nvmem
F: Documentation/devicetree/bindings/nvmem/
F: drivers/nvmem/
--
2.1.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Fix some issues about NVMEM
2020-05-22 7:50 [PATCH 0/2] Fix some issues about NVMEM Tiezhu Yang
2020-05-22 7:51 ` [PATCH 1/2] nvmem: sprd: Fix return value of sprd_efuse_probe() Tiezhu Yang
2020-05-22 7:51 ` [PATCH 2/2] MAINTAINERS: Add git tree for NVMEM FRAMEWORK Tiezhu Yang
@ 2020-05-22 11:36 ` Srinivas Kandagatla
2 siblings, 0 replies; 4+ messages in thread
From: Srinivas Kandagatla @ 2020-05-22 11:36 UTC (permalink / raw)
To: Tiezhu Yang; +Cc: linux-kernel, Xuefeng Li
On 22/05/2020 08:50, Tiezhu Yang wrote:
> This patch series is based on the latest Linus' tree.
>
> Tiezhu Yang (2):
> nvmem: sprd: Fix return value of sprd_efuse_probe()
> MAINTAINERS: Add git tree for NVMEM FRAMEWORK
>
> MAINTAINERS | 1 +
> drivers/nvmem/sprd-efuse.c | 4 ++--
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
Thanks Applied!
--srini
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-22 11:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 7:50 [PATCH 0/2] Fix some issues about NVMEM Tiezhu Yang
2020-05-22 7:51 ` [PATCH 1/2] nvmem: sprd: Fix return value of sprd_efuse_probe() Tiezhu Yang
2020-05-22 7:51 ` [PATCH 2/2] MAINTAINERS: Add git tree for NVMEM FRAMEWORK Tiezhu Yang
2020-05-22 11:36 ` [PATCH 0/2] Fix some issues about NVMEM Srinivas Kandagatla
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).