Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/boot: drop planetcore_set_serial_speed

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>

authored by

Arseny Solokha and committed by
Michael Ellerman
170acae4 b887f9e3

-36
-33
arch/powerpc/boot/planetcore.c
··· 131 131 132 132 setprop_str(chosen, "linux,stdout-path", path); 133 133 } 134 - 135 - void planetcore_set_serial_speed(const char *table) 136 - { 137 - void *chosen, *stdout; 138 - u64 baud; 139 - u32 baud32; 140 - int len; 141 - 142 - chosen = finddevice("/chosen"); 143 - if (!chosen) 144 - return; 145 - 146 - len = getprop(chosen, "linux,stdout-path", prop_buf, MAX_PROP_LEN); 147 - if (len <= 0) 148 - return; 149 - 150 - stdout = finddevice(prop_buf); 151 - if (!stdout) { 152 - printf("planetcore_set_serial_speed: " 153 - "Bad /chosen/linux,stdout-path.\r\n"); 154 - 155 - return; 156 - } 157 - 158 - if (!planetcore_get_decimal(table, PLANETCORE_KEY_SERIAL_BAUD, 159 - &baud)) { 160 - printf("planetcore_set_serial_speed: No SB tag.\r\n"); 161 - return; 162 - } 163 - 164 - baud32 = baud; 165 - setprop(stdout, "current-speed", &baud32, 4); 166 - }
-3
arch/powerpc/boot/planetcore.h
··· 43 43 */ 44 44 void planetcore_set_stdout_path(const char *table); 45 45 46 - /* Sets the current-speed property in the serial node. */ 47 - void planetcore_set_serial_speed(const char *table); 48 - 49 46 #endif