Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48067
b: refs/heads/master
c: 5b8e8ee
h: refs/heads/master
i:
  48065: 4b4912e
  48063: 2ee2b32
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Feb 12, 2007
1 parent dc89861 commit 2b2781c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e14ab8b5ecca8997406180e23761525f49a09a3
refs/heads/master: 5b8e8ee6c65a34d8aafaeb8e2eaa97e496c2567c
17 changes: 17 additions & 0 deletions trunk/drivers/ps3/vuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,22 @@ static int ps3_vuart_remove(struct device *_dev)
return 0;
}

static void ps3_vuart_shutdown(struct device *_dev)
{
struct ps3_vuart_port_device *dev = to_ps3_vuart_port_device(_dev);
struct ps3_vuart_port_driver *drv =
to_ps3_vuart_port_driver(_dev->driver);

dev_dbg(&dev->core, "%s:%d: %s\n", __func__, __LINE__,
dev->core.bus_id);

if (drv->shutdown)
drv->shutdown(dev);
else
dev_dbg(&dev->core, "%s:%d: %s no shutdown method\n", __func__,
__LINE__, dev->core.bus_id);
}

/**
* ps3_vuart - The vuart instance.
*
Expand All @@ -878,6 +894,7 @@ struct bus_type ps3_vuart = {
.match = ps3_vuart_match,
.probe = ps3_vuart_probe,
.remove = ps3_vuart_remove,
.shutdown = ps3_vuart_shutdown,
};

int __init ps3_vuart_init(void)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/ps3/vuart.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct ps3_vuart_port_driver {
struct device_driver core;
int (*probe)(struct ps3_vuart_port_device *);
int (*remove)(struct ps3_vuart_port_device *);
void (*shutdown)(struct ps3_vuart_port_device *);
int (*tx_event)(struct ps3_vuart_port_device *dev);
int (*rx_event)(struct ps3_vuart_port_device *dev);
int (*disconnect_event)(struct ps3_vuart_port_device *dev);
Expand Down

0 comments on commit 2b2781c

Please sign in to comment.