Author: loos
Date: Sat Dec 27 20:06:16 2014
New Revision: 276316
URL: https://svnweb.freebsd.org/changeset/base/276316

Log:
  Remove unnecessary code and, instead, use the provided iicbus_null_callback
  callback.

Modified:
  head/sys/arm/ti/ti_i2c.c

Modified: head/sys/arm/ti/ti_i2c.c
==============================================================================
--- head/sys/arm/ti/ti_i2c.c    Sat Dec 27 19:56:04 2014        (r276315)
+++ head/sys/arm/ti/ti_i2c.c    Sat Dec 27 20:06:16 2014        (r276316)
@@ -473,38 +473,6 @@ out:
        return (err);
 }
 
-/**
- *     ti_i2c_callback - as we only provide iicbus_transfer() interface
- *             we don't need to implement the serialization here.
- *     @dev: i2c device handle
- *
- *
- *
- *     LOCKING:
- *     Called from timer context
- *
- *     RETURNS:
- *     EH_HANDLED or EH_NOT_HANDLED
- */
-static int
-ti_i2c_callback(device_t dev, int index, caddr_t data)
-{
-       int error = 0;
-
-       switch (index) {
-               case IIC_REQUEST_BUS:
-                       break;
-
-               case IIC_RELEASE_BUS:
-                       break;
-
-               default:
-                       error = EINVAL;
-       }
-
-       return (error);
-}
-
 static int
 ti_i2c_reset(struct ti_i2c_softc *sc, u_char speed)
 {
@@ -955,7 +923,7 @@ static device_method_t ti_i2c_methods[] 
        DEVMETHOD(ofw_bus_get_node,     ti_i2c_get_node),
 
        /* iicbus interface */
-       DEVMETHOD(iicbus_callback,      ti_i2c_callback),
+       DEVMETHOD(iicbus_callback,      iicbus_null_callback),
        DEVMETHOD(iicbus_reset,         ti_i2c_iicbus_reset),
        DEVMETHOD(iicbus_transfer,      ti_i2c_transfer),
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to