summaryrefslogtreecommitdiff
path: root/sys/pci/adw_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/adw_pci.c')
-rw-r--r--sys/pci/adw_pci.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/pci/adw_pci.c b/sys/pci/adw_pci.c
index b65037bdba6b..2109b91d1b0f 100644
--- a/sys/pci/adw_pci.c
+++ b/sys/pci/adw_pci.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: adw_pci.c,v 1.2 1998/12/07 21:58:45 archie Exp $
+ * $Id$
*/
#include <pci.h>
@@ -58,7 +58,7 @@
#define ADW_PCI_MAX_DMA_ADDR (0xFFFFFFFFUL)
#define ADW_PCI_MAX_DMA_COUNT (0xFFFFFFFFUL)
-static const char* adwpciprobe(pcici_t tag, pcidi_t type);
+static char* adwpciprobe(pcici_t tag, pcidi_t type);
static void adwpciattach(pcici_t config_id, int unit);
static struct pci_device adw_pci_driver = {
@@ -71,7 +71,7 @@ static struct pci_device adw_pci_driver = {
DATA_SET (pcidevice_set, adw_pci_driver);
-static const char*
+static char*
adwpciprobe(pcici_t tag, pcidi_t type)
{
switch (type) {
@@ -89,9 +89,7 @@ adwpciattach(pcici_t config_id, int unit)
u_int32_t id;
u_int32_t command;
vm_offset_t vaddr;
-#ifdef ADW_ALLOW_MEMIO
vm_offset_t paddr;
-#endif
u_int16_t io_port;
bus_space_tag_t tag;
bus_space_handle_t bsh;