[PATCH] powerpc/powernv: use appropiate error code

2023-09-01 Thread mirimmad
From: Immad Mir -1 is not a valid error code. This patch replaces it with -EPERM. Signed-off-by: Immad Mir --- arch/powerpc/platforms/powernv/opal-xscom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-xscom.c b/arch/powerpc/platfor

[PATCH] powerpc: use appropriate error codes

2023-06-03 Thread mirimmad
From: Immad Mir This patch replaces use of returning -1 by appropiate error codes. Signed-off-by: Immad Mir --- arch/powerpc/platforms/powernv/opal-elog.c | 4 ++-- arch/powerpc/platforms/powernv/opal-xscom.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerp

[PATCH] powerpc: fix debugfs_create_dir error checking

2023-05-28 Thread mirimmad
From: Immad Mir The debugfs_create_dir returns ERR_PTR incase of an error and the correct way of checking it by using the IS_ERR inline function, and not the simple null comparision. This patch fixes this. Suggested-By: Ivan Orlov Signed-off-by: Immad Mir --- arch/powerpc/platforms/powernv/op

[PATCH] powerpc: fix debugfs_create_dir error checking

2023-05-13 Thread mirimmad
From: Immad Mir The debugfs_create_dir returns ERR_PTR incase of an error and the correct way of checking it by using the IS_ERR inline function, and not the simple null comparision. This patch fixes this. Suggested-By: Ivan Orlov Signed-off-by: Immad Mir --- arch/powerpc/platforms/powernv/op