Date: Fri, 4 May 2007 02:41:27 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 119217 for review Message-ID: <200705040241.l442fR36038875@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119217 Change 119217 by rpaulo@rpaulo_epsilon on 2007/05/04 02:41:01 Use resource_disabled() in probe routine. Affected files ... .. //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#4 edit Differences ... ==== //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#4 (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/backlight/backlight.c#3 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#4 $ * */ @@ -149,6 +149,9 @@ { struct backlight_model *model; + if (resource_disabled("backlight", 0)) + return ENXIO; + model = backlight_match(dev); if (!model)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705040241.l442fR36038875>