]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/boot: drop planetcore_set_serial_speed
authorArseny Solokha <asolokha@kb.kras.ru>
Tue, 24 Feb 2015 09:05:03 +0000 (16:05 +0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Mar 2015 07:50:17 +0000 (18:50 +1100)
Drop planetcore_set_serial_speed() which had no users since its
inception in commit fec6047047fd ("[POWERPC] bootwrapper: Add PlanetCore
firmware support") in 2007.

Signed-off-by: Arseny Solokha <asolokha@kb.kras.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/planetcore.c
arch/powerpc/boot/planetcore.h

index 0d8558a475bbc7c8026a615fba49cf26d3bcfb97..75117e63e6db2e059ee5321a444579b2c3bd0621 100644 (file)
@@ -131,36 +131,3 @@ void planetcore_set_stdout_path(const char *table)
 
        setprop_str(chosen, "linux,stdout-path", path);
 }
-
-void planetcore_set_serial_speed(const char *table)
-{
-       void *chosen, *stdout;
-       u64 baud;
-       u32 baud32;
-       int len;
-
-       chosen = finddevice("/chosen");
-       if (!chosen)
-               return;
-
-       len = getprop(chosen, "linux,stdout-path", prop_buf, MAX_PROP_LEN);
-       if (len <= 0)
-               return;
-
-       stdout = finddevice(prop_buf);
-       if (!stdout) {
-               printf("planetcore_set_serial_speed: "
-                      "Bad /chosen/linux,stdout-path.\r\n");
-
-               return;
-       }
-
-       if (!planetcore_get_decimal(table, PLANETCORE_KEY_SERIAL_BAUD,
-                                   &baud)) {
-               printf("planetcore_set_serial_speed: No SB tag.\r\n");
-               return;
-       }
-
-       baud32 = baud;
-       setprop(stdout, "current-speed", &baud32, 4);
-}
index 0d4094f1771cd0e83ce631d19d6b9ae138864078..d53c733cc463b16888ed96f41514d057daf486e1 100644 (file)
@@ -43,7 +43,4 @@ void planetcore_set_mac_addrs(const char *table);
  */
 void planetcore_set_stdout_path(const char *table);
 
-/* Sets the current-speed property in the serial node. */
-void planetcore_set_serial_speed(const char *table);
-
 #endif