From fb04706fc71aeac10a37fe148d313a410392300d Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 26 Mar 1997 15:56:21 +0000 Subject: [PATCH] Fix probe wrapper to pass ports number from low level probe --- sys/i386/isa/sound/dev_table.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/i386/isa/sound/dev_table.c b/sys/i386/isa/sound/dev_table.c index 49023249a6be..ed01fd42d8cb 100644 --- a/sys/i386/isa/sound/dev_table.c +++ b/sys/i386/isa/sound/dev_table.c @@ -86,10 +86,10 @@ sndtable_init (long mem_start) int sndtable_probe (int unit, struct address_info *hw_config) { - int i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); + int r, i, n = sizeof (snd_installed_cards) / sizeof (struct card_info); if (!unit) - return TRUE; + return 0; for (i = 0; i < (n - 1); i++) if (snd_installed_cards[i].enabled) @@ -105,15 +105,15 @@ sndtable_probe (int unit, struct address_info *hw_config) * Mark as not * detected */ - else if (sound_drivers[drv].probe (hw_config)) - return 1; + else if ((r = sound_drivers[drv].probe (hw_config))) + return r; snd_installed_cards[i].enabled = 0; /* * Mark as not detected */ return 0; } - return FALSE; + return 0; } int