linux-mips
[Top] [All Lists]

[PATCH] octeon: prom_putchar() must be void

To: unlisted-recipients:; (no To-header on input)
Subject: [PATCH] octeon: prom_putchar() must be void
From: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Date: Tue, 17 Jan 2017 18:36:44 +0100
Authentication-results: spf=none (sender IP is ) smtp.mailfrom=alexander.sverdlin@nokia.com;
Cc: Alexander Sverdlin <alexander.sverdlin@nsn.com>, Alexander Sverdlin <alexander.sverdlin@nokia.com>, Ralf Baechle <ralf@linux-mips.org>, David Daney <david.daney@cavium.com>, Aaro Koskinen <aaro.koskinen@nokia.com>, "Steven J. Hill" <steven.hill@cavium.com>, <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dMZRV6horAbNQ5aMCgmB99iCm8TOQR4dSIs2Ht5IllI=; b=UqIiI0AX+joeYEyw3bN1EkGSNEDyzuMlCRHlvTiLZyON+kk74fHpGnaxBOSzB6Ui+cslP4Nyge1X/F2Y6Fjnhh1Y0Gviw6OcUDPiZqHEpXxe9sJaQwGpryYeI3tewTlAwivvdKqxopdYjODm3B0+TrXzfdb401KNU6ITibkJqsw=
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Spamdiagnosticmetadata: NSPM
Spamdiagnosticoutput: 1:99
From: Alexander Sverdlin <alexander.sverdlin@nsn.com>

Correct the function return type.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <david.daney@cavium.com>
Cc: Aaro Koskinen <aaro.koskinen@nokia.com>
Cc: "Steven J. Hill" <steven.hill@cavium.com>
Cc: linux-mips@linux-mips.org
---
 arch/mips/cavium-octeon/setup.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c
index 9a2db1c013d9..bb613d3e5246 100644
--- a/arch/mips/cavium-octeon/setup.c
+++ b/arch/mips/cavium-octeon/setup.c
@@ -1095,7 +1095,7 @@ void __init plat_mem_setup(void)
  * Emit one character to the boot UART.         Exported for use by the
  * watchdog timer.
  */
-int prom_putchar(char c)
+void prom_putchar(char c)
 {
        uint64_t lsrval;
 
@@ -1106,7 +1106,6 @@ int prom_putchar(char c)
 
        /* Write the byte */
        cvmx_write_csr(CVMX_MIO_UARTX_THR(octeon_uart), c & 0xffull);
-       return 1;
 }
 EXPORT_SYMBOL(prom_putchar);
 
-- 
2.11.0


<Prev in Thread] Current Thread [Next in Thread>