Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Oct 2010 22:50:08 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213434 - head/sys/dev/usb
Message-ID:  <201010042250.o94Mo8Mu030099@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Oct  4 22:50:08 2010
New Revision: 213434
URL: http://svn.freebsd.org/changeset/base/213434

Log:
  Add missing #if's
  
  Approved by:    thompsa (mentor)

Modified:
  head/sys/dev/usb/usb_handle_request.c

Modified: head/sys/dev/usb/usb_handle_request.c
==============================================================================
--- head/sys/dev/usb/usb_handle_request.c	Mon Oct  4 22:45:17 2010	(r213433)
+++ head/sys/dev/usb/usb_handle_request.c	Mon Oct  4 22:50:08 2010	(r213434)
@@ -438,8 +438,10 @@ usb_handle_remote_wakeup(struct usb_xfer
 
 	USB_BUS_UNLOCK(bus);
 
+#if USB_HAVE_POWERD
 	/* In case we are out of sync, update the power state. */
 	usb_bus_power_update(udev->bus);
+#endif
 	return (0);			/* success */
 }
 



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