Date: Fri, 4 May 2007 02:39:24 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 119216 for review Message-ID: <200705040239.l442dO40037288@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119216 Change 119216 by rpaulo@rpaulo_epsilon on 2007/05/04 02:38:27 Use resource_disabled() in probe routine. Affected files ... .. //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#2 edit Differences ... ==== //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#2 (text+ko) ==== @@ -23,7 +23,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#1 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#2 $ * */ @@ -113,6 +113,9 @@ static int msrtemp_probe(device_t dev) { + if (resource_disabled("msrtemp", 0)) + return ENXIO; + device_set_desc(dev, "CPU On-Die Thermal Sensors"); return BUS_PROBE_GENERIC;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705040239.l442dO40037288>