Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242492
b: refs/heads/master
c: 3c190c5
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Mar 23, 2011
1 parent c28cdd2 commit 88d5207
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5ab5276baf9fd8b581cfbf41b10b6d4eae55960
refs/heads/master: 3c190c51f55eab691e5d096747262d2653e67de1
4 changes: 0 additions & 4 deletions trunk/arch/s390/include/asm/ccwgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ struct ccwgroup_device {

/**
* struct ccwgroup_driver - driver for ccw group devices
* @owner: driver owner
* @name: driver name
* @max_slaves: maximum number of slave devices
* @driver_id: unique id
* @probe: function called on probe
Expand All @@ -46,8 +44,6 @@ struct ccwgroup_device {
* @driver: embedded driver structure
*/
struct ccwgroup_driver {
struct module *owner;
char *name;
int max_slaves;
unsigned long driver_id;

Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/s390/cio/ccwgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ ccwgroup_online_store (struct device *dev, struct device_attribute *attr, const
gdev = to_ccwgroupdev(dev);
gdrv = to_ccwgroupdrv(dev->driver);

if (!try_module_get(gdrv->owner))
if (!try_module_get(gdrv->driver.owner))
return -EINVAL;

ret = strict_strtoul(buf, 0, &value);
Expand All @@ -442,7 +442,7 @@ ccwgroup_online_store (struct device *dev, struct device_attribute *attr, const
else
ret = -EINVAL;
out:
module_put(gdrv->owner);
module_put(gdrv->driver.owner);
return (ret == 0) ? count : ret;
}

Expand Down Expand Up @@ -616,8 +616,6 @@ int ccwgroup_driver_register(struct ccwgroup_driver *cdriver)
{
/* register our new driver with the core */
cdriver->driver.bus = &ccwgroup_bus_type;
cdriver->driver.name = cdriver->name;
cdriver->driver.owner = cdriver->owner;

return driver_register(&cdriver->driver);
}
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/s390/net/claw.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ static struct device *claw_root_dev;
/* ccwgroup table */

static struct ccwgroup_driver claw_group_driver = {
.owner = THIS_MODULE,
.name = "claw",
.driver = {
.owner = THIS_MODULE,
.name = "claw",
},
.max_slaves = 2,
.driver_id = 0xC3D3C1E6,
.probe = claw_probe,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/s390/net/ctcm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1774,8 +1774,10 @@ static struct ccw_driver ctcm_ccw_driver = {
};

static struct ccwgroup_driver ctcm_group_driver = {
.owner = THIS_MODULE,
.name = CTC_DRIVER_NAME,
.driver = {
.owner = THIS_MODULE,
.name = CTC_DRIVER_NAME,
},
.max_slaves = 2,
.driver_id = 0xC3E3C3D4, /* CTCM */
.probe = ctcm_probe_device,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/s390/net/lcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2409,8 +2409,10 @@ static struct ccw_driver lcs_ccw_driver = {
* LCS ccwgroup driver registration
*/
static struct ccwgroup_driver lcs_group_driver = {
.owner = THIS_MODULE,
.name = "lcs",
.driver = {
.owner = THIS_MODULE,
.name = "lcs",
},
.max_slaves = 2,
.driver_id = 0xD3C3E2,
.probe = lcs_probe_device,
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4430,8 +4430,10 @@ static int qeth_core_restore(struct ccwgroup_device *gdev)
}

static struct ccwgroup_driver qeth_core_ccwgroup_driver = {
.owner = THIS_MODULE,
.name = "qeth",
.driver = {
.owner = THIS_MODULE,
.name = "qeth",
},
.driver_id = 0xD8C5E3C8,
.probe = qeth_core_probe_device,
.remove = qeth_core_remove_device,
Expand Down

0 comments on commit 88d5207

Please sign in to comment.