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
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
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
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