summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/mpc8xx/serial.c
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2010-04-24 19:27:04 +0200
committerWolfgang Denk <wd@denx.de>2010-04-24 21:34:07 +0200
commitfbb0030e3894119c089256f16626edd166c7629c (patch)
tree03fa427e4192ac88b607a5ba629f408d1fdff40f /arch/powerpc/cpu/mpc8xx/serial.c
parent6e5fb4eec3702a13770769a5a48a9423aa68ee9c (diff)
downloadblackbird-obmc-uboot-fbb0030e3894119c089256f16626edd166c7629c.tar.gz
blackbird-obmc-uboot-fbb0030e3894119c089256f16626edd166c7629c.zip
serial: struct serial_device: add uninit() entry for drivers
Subsequent patch extends mpc512x serial driver to support multiple PSC ports. The driver will provide an uninit() function to stop the serial controller and to disable the controller's clock. Adding uninit() entry to struct serial_device allows disabling the serial controller after usage of a stdio serial device. This patch adds uninit() entry to the struct serial_device and fixes initialization of this structure in the code accordingly. Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xx/serial.c')
-rw-r--r--arch/powerpc/cpu/mpc8xx/serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/serial.c b/arch/powerpc/cpu/mpc8xx/serial.c
index 664db65a56..9514c66fd5 100644
--- a/arch/powerpc/cpu/mpc8xx/serial.c
+++ b/arch/powerpc/cpu/mpc8xx/serial.c
@@ -392,6 +392,7 @@ struct serial_device serial_smc_device =
"serial_smc",
"SMC",
smc_init,
+ NULL,
smc_setbrg,
smc_getc,
smc_tstc,
@@ -662,6 +663,7 @@ struct serial_device serial_scc_device =
"serial_scc",
"SCC",
scc_init,
+ NULL,
scc_setbrg,
scc_getc,
scc_tstc,
OpenPOWER on IntegriCloud