linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] microblaze: Fix return value from xilinx_timer_init
@ 2016-11-15 12:52 Michal Simek
  2016-11-15 12:52 ` [PATCH 2/4] microblaze: Add missing syscalls Michal Simek
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michal Simek @ 2016-11-15 12:52 UTC (permalink / raw)
  To: linux-kernel, monstr
  Cc: Eric Anholt, Carlo Caione, Chen-Yu Tsai, Daniel Lezcano

The patch
"clocksource/drivers/microblaze: Convert init function to return error"
(sha1: 0586421746ef2bc33898d2d7f3dbb0eec6b234c3)
introduced return value and this one was forgetten to convert.

This patch also remove compilation warning:
arch/microblaze/kernel/timer.c: In function 'xilinx_timer_init':
arch/microblaze/kernel/timer.c:262:3: warning: 'return' with no value,
 in function returning non-void [-Wreturn-type]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 arch/microblaze/kernel/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c
index 5bbf38b916ef..9e954959f605 100644
--- a/arch/microblaze/kernel/timer.c
+++ b/arch/microblaze/kernel/timer.c
@@ -259,7 +259,7 @@ static int __init xilinx_timer_init(struct device_node *timer)
 	int ret;
 
 	if (initialized)
-		return;
+		return -EINVAL;
 
 	initialized = 1;
 
-- 
1.9.1

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

end of thread, other threads:[~2016-11-15 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 12:52 [PATCH 1/4] microblaze: Fix return value from xilinx_timer_init Michal Simek
2016-11-15 12:52 ` [PATCH 2/4] microblaze: Add missing syscalls Michal Simek
2016-11-15 12:52 ` [PATCH 3/4] microblaze: Add missing release version code v9.6 and v10 Michal Simek
2016-11-15 12:52 ` [PATCH 4/4] microblaze: Add new fpga families Michal Simek

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