Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Oct 2015 23:46:20 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289911 - head/sys/dev/ioat
Message-ID:  <201510242346.t9ONkKTC012119@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sat Oct 24 23:46:20 2015
New Revision: 289911
URL: https://svnweb.freebsd.org/changeset/base/289911

Log:
  ioat: Use bus_alloc_resource_any(9)
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/dev/ioat/ioat.c

Modified: head/sys/dev/ioat/ioat.c
==============================================================================
--- head/sys/dev/ioat/ioat.c	Sat Oct 24 23:46:08 2015	(r289910)
+++ head/sys/dev/ioat/ioat.c	Sat Oct 24 23:46:20 2015	(r289911)
@@ -451,8 +451,8 @@ ioat_map_pci_bar(struct ioat_softc *ioat
 {
 
 	ioat->pci_resource_id = PCIR_BAR(0);
-	ioat->pci_resource = bus_alloc_resource(ioat->device, SYS_RES_MEMORY,
-	    &ioat->pci_resource_id, 0, ~0, 1, RF_ACTIVE);
+	ioat->pci_resource = bus_alloc_resource_any(ioat->device,
+	    SYS_RES_MEMORY, &ioat->pci_resource_id, RF_ACTIVE);
 
 	if (ioat->pci_resource == NULL) {
 		ioat_log_message(0, "unable to allocate pci resource\n");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510242346.t9ONkKTC012119>