Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2018 01:52:34 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338678 - stable/11/sys/dev/intel
Message-ID:  <201809140152.w8E1qYWs009648@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Sep 14 01:52:34 2018
New Revision: 338678
URL: https://svnweb.freebsd.org/changeset/base/338678

Log:
  MFC r338528:
  Specify the correct resource type in teardown paths.

Modified:
  stable/11/sys/dev/intel/spi.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/intel/spi.c
==============================================================================
--- stable/11/sys/dev/intel/spi.c	Fri Sep 14 01:30:05 2018	(r338677)
+++ stable/11/sys/dev/intel/spi.c	Fri Sep 14 01:52:34 2018	(r338678)
@@ -480,7 +480,7 @@ error:
 		    sc->sc_mem_rid, sc->sc_mem_res);
 
 	if (sc->sc_irq_res != NULL)
-		bus_release_resource(dev, SYS_RES_MEMORY,
+		bus_release_resource(dev, SYS_RES_IRQ,
 		    sc->sc_irq_rid, sc->sc_irq_res);
 
 	return (ENXIO);
@@ -503,7 +503,7 @@ intelspi_detach(device_t dev)
 		    sc->sc_mem_rid, sc->sc_mem_res);
 
 	if (sc->sc_irq_res != NULL)
-		bus_release_resource(dev, SYS_RES_MEMORY,
+		bus_release_resource(dev, SYS_RES_IRQ,
 		    sc->sc_irq_rid, sc->sc_irq_res);
 
 	return (0);



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