From 54da5aa1bae654441f181f8e9f8f3554c392db36 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Tue, 12 Jan 1999 01:29:45 +0000 Subject: Move a couple of functions to make __inline work. While I'm here, split a couple of function declarations to make the style internally consistent. --- sys/dev/scd/scd.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index 15ad25ed505c..7eeca7b004c2 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -41,7 +41,7 @@ */ -/* $Id: scd.c,v 1.39 1998/07/04 22:30:17 julian Exp $ */ +/* $Id: scd.c,v 1.40 1998/07/13 09:53:02 bde Exp $ */ /* Please send any comments to micke@dynas.se */ @@ -201,7 +201,8 @@ static struct cdevsw scd_cdevsw = { D_DISK, 0, -1 }; -int scd_attach(struct isa_device *dev) +static int +scd_attach(struct isa_device *dev) { int unit = dev->id_unit; struct scd_data *cd = scd_data + unit; @@ -694,7 +695,13 @@ scd_subchan(int unit, struct ioc_read_subchannel *sc) return 0; } -int +static __inline void +write_control(unsigned port, unsigned data) +{ + outb(port + OREG_CONTROL, data); +} + +static int scd_probe(struct isa_device *dev) { struct sony_drive_configuration drive_config; @@ -1285,12 +1292,6 @@ read_toc(dev_t dev) return 0; } -static __inline void -write_control(unsigned port, unsigned data) -{ - outb(port + OREG_CONTROL, data); -} - static void init_drive(unsigned unit) { -- cgit v1.3