Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83293
b: refs/heads/master
c: 01bc8ad
h: refs/heads/master
i:
  83291: 5c7b4e2
v: v3
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Feb 5, 2008
1 parent beb9f01 commit 6c89184
Show file tree
Hide file tree
Showing 3 changed files with 15 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: 2fffc9355e6240466d1af764b0dcdede52085f7c
refs/heads/master: 01bc8ad165490458a8feb744c8f401c1a7098e3a
12 changes: 12 additions & 0 deletions trunk/drivers/s390/cio/ccwgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,24 @@ ccwgroup_remove (struct device *dev)
return 0;
}

static void ccwgroup_shutdown(struct device *dev)
{
struct ccwgroup_device *gdev;
struct ccwgroup_driver *gdrv;

gdev = to_ccwgroupdev(dev);
gdrv = to_ccwgroupdrv(dev->driver);
if (gdrv && gdrv->shutdown)
gdrv->shutdown(gdev);
}

static struct bus_type ccwgroup_bus_type = {
.name = "ccwgroup",
.match = ccwgroup_bus_match,
.uevent = ccwgroup_uevent,
.probe = ccwgroup_probe,
.remove = ccwgroup_remove,
.shutdown = ccwgroup_shutdown,
};

/**
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-s390/ccwgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct ccwgroup_device {
* @remove: function called on remove
* @set_online: function called when device is set online
* @set_offline: function called when device is set offline
* @shutdown: function called when device is shut down
* @driver: embedded driver structure
*/
struct ccwgroup_driver {
Expand All @@ -49,6 +50,7 @@ struct ccwgroup_driver {
void (*remove) (struct ccwgroup_device *);
int (*set_online) (struct ccwgroup_device *);
int (*set_offline) (struct ccwgroup_device *);
void (*shutdown)(struct ccwgroup_device *);

struct device_driver driver;
};
Expand Down

0 comments on commit 6c89184

Please sign in to comment.