Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2012 22:54:03 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r229741 - stable/8/sys/dev/usb/controller
Message-ID:  <201201062254.q06Ms3jf012102@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Jan  6 22:54:03 2012
New Revision: 229741
URL: http://svn.freebsd.org/changeset/base/229741

Log:
  Fix build of ehci_mbus.c by applying patches similar
  to ones in r228483. This file was missed by a recent
  MFC because the file is named differently in 10-current.
  
  Pointy hat: hselasky @
  Reported by: jhb

Modified:
  stable/8/sys/dev/usb/controller/ehci_mbus.c

Modified: stable/8/sys/dev/usb/controller/ehci_mbus.c
==============================================================================
--- stable/8/sys/dev/usb/controller/ehci_mbus.c	Fri Jan  6 22:18:13 2012	(r229740)
+++ stable/8/sys/dev/usb/controller/ehci_mbus.c	Fri Jan  6 22:54:03 2012	(r229741)
@@ -78,9 +78,6 @@ __FBSDID("$FreeBSD$");
 
 static device_attach_t ehci_mbus_attach;
 static device_detach_t ehci_mbus_detach;
-static device_shutdown_t ehci_mbus_shutdown;
-static device_suspend_t ehci_mbus_suspend;
-static device_resume_t ehci_mbus_resume;
 
 static int err_intr(void *arg);
 
@@ -99,45 +96,6 @@ static void *ih_err;
 #define	MV_USB_DEVICE_UNDERFLOW (1 << 3)
 
 static int
-ehci_mbus_suspend(device_t self)
-{
-	ehci_softc_t *sc = device_get_softc(self);
-	int err;
-
-	err = bus_generic_suspend(self);
-	if (err)
-		return (err);
-	ehci_suspend(sc);
-	return (0);
-}
-
-static int
-ehci_mbus_resume(device_t self)
-{
-	ehci_softc_t *sc = device_get_softc(self);
-
-	ehci_resume(sc);
-
-	bus_generic_resume(self);
-
-	return (0);
-}
-
-static int
-ehci_mbus_shutdown(device_t self)
-{
-	ehci_softc_t *sc = device_get_softc(self);
-	int err;
-
-	err = bus_generic_shutdown(self);
-	if (err)
-		return (err);
-	ehci_shutdown(sc);
-
-	return (0);
-}
-
-static int
 ehci_mbus_probe(device_t self)
 {
 
@@ -361,20 +319,17 @@ static device_method_t ehci_methods[] = 
 	DEVMETHOD(device_probe, ehci_mbus_probe),
 	DEVMETHOD(device_attach, ehci_mbus_attach),
 	DEVMETHOD(device_detach, ehci_mbus_detach),
-	DEVMETHOD(device_suspend, ehci_mbus_suspend),
-	DEVMETHOD(device_resume, ehci_mbus_resume),
-	DEVMETHOD(device_shutdown, ehci_mbus_shutdown),
-
-	/* Bus interface */
-	DEVMETHOD(bus_print_child, bus_generic_print_child),
+	DEVMETHOD(device_suspend, bus_generic_suspend),
+	DEVMETHOD(device_resume, bus_generic_resume),
+	DEVMETHOD(device_shutdown, bus_generic_shutdown),
 
-	{0, 0}
+	DEVMETHOD_END
 };
 
 static driver_t ehci_driver = {
-	"ehci",
-	ehci_methods,
-	sizeof(ehci_softc_t),
+	.name = "ehci",
+	.methods = ehci_methods,
+	.size = sizeof(ehci_softc_t),
 };
 
 static devclass_t ehci_devclass;



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