rapidio/tsi721_dma: fix hardware error handling
[deliverable/linux.git] / drivers / rapidio / rio-driver.c
index f301f059bb85c1b18820ee45cfe4f08427ae8ec9..128350f4d17a45f9787ab43b828d90d5f52a396b 100644 (file)
@@ -131,6 +131,17 @@ static int rio_device_remove(struct device *dev)
        return 0;
 }
 
+static void rio_device_shutdown(struct device *dev)
+{
+       struct rio_dev *rdev = to_rio_dev(dev);
+       struct rio_driver *rdrv = rdev->driver;
+
+       dev_dbg(dev, "RIO: %s\n", __func__);
+
+       if (rdrv && rdrv->shutdown)
+               rdrv->shutdown(rdev);
+}
+
 /**
  *  rio_register_driver - register a new RIO driver
  *  @rdrv: the RIO driver structure to register
@@ -229,6 +240,7 @@ struct bus_type rio_bus_type = {
        .bus_groups = rio_bus_groups,
        .probe = rio_device_probe,
        .remove = rio_device_remove,
+       .shutdown = rio_device_shutdown,
        .uevent = rio_uevent,
 };
 
This page took 0.026329 seconds and 5 git commands to generate.