aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ps3/vuart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ps3/vuart.c')
-rw-r--r--drivers/ps3/vuart.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/ps3/vuart.c b/drivers/ps3/vuart.c
index a72da8f651f8..ef8fd4c30875 100644
--- a/drivers/ps3/vuart.c
+++ b/drivers/ps3/vuart.c
@@ -867,6 +867,22 @@ static int ps3_vuart_remove(struct device *_dev)
867 return 0; 867 return 0;
868} 868}
869 869
870static void ps3_vuart_shutdown(struct device *_dev)
871{
872 struct ps3_vuart_port_device *dev = to_ps3_vuart_port_device(_dev);
873 struct ps3_vuart_port_driver *drv =
874 to_ps3_vuart_port_driver(_dev->driver);
875
876 dev_dbg(&dev->core, "%s:%d: %s\n", __func__, __LINE__,
877 dev->core.bus_id);
878
879 if (drv->shutdown)
880 drv->shutdown(dev);
881 else
882 dev_dbg(&dev->core, "%s:%d: %s no shutdown method\n", __func__,
883 __LINE__, dev->core.bus_id);
884}
885
870/** 886/**
871 * ps3_vuart - The vuart instance. 887 * ps3_vuart - The vuart instance.
872 * 888 *
@@ -878,6 +894,7 @@ struct bus_type ps3_vuart = {
878 .match = ps3_vuart_match, 894 .match = ps3_vuart_match,
879 .probe = ps3_vuart_probe, 895 .probe = ps3_vuart_probe,
880 .remove = ps3_vuart_remove, 896 .remove = ps3_vuart_remove,
897 .shutdown = ps3_vuart_shutdown,
881}; 898};
882 899
883int __init ps3_vuart_init(void) 900int __init ps3_vuart_init(void)