Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72114
b: refs/heads/master
c: 0546960
h: refs/heads/master
v: v3
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Oct 22, 2007
1 parent 4ccef34 commit b196d59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: fae8b22d3e3e3a3d317a7746493997af02a3f35c
refs/heads/master: 054696077a6c4f9e306321d45b5762d6ea7940e1
12 changes: 6 additions & 6 deletions trunk/drivers/s390/cio/chp.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ int chp_add_cmg_attr(struct channel_path *chp)
static ssize_t chp_status_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct channel_path *chp = container_of(dev, struct channel_path, dev);
struct channel_path *chp = to_channelpath(dev);

if (!chp)
return 0;
Expand All @@ -258,7 +258,7 @@ static ssize_t chp_status_write(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
struct channel_path *cp = container_of(dev, struct channel_path, dev);
struct channel_path *cp = to_channelpath(dev);
char cmd[10];
int num_args;
int error;
Expand Down Expand Up @@ -286,7 +286,7 @@ static ssize_t chp_configure_show(struct device *dev,
struct channel_path *cp;
int status;

cp = container_of(dev, struct channel_path, dev);
cp = to_channelpath(dev);
status = chp_info_get_status(cp->chpid);
if (status < 0)
return status;
Expand All @@ -308,7 +308,7 @@ static ssize_t chp_configure_write(struct device *dev,
return -EINVAL;
if (val != 0 && val != 1)
return -EINVAL;
cp = container_of(dev, struct channel_path, dev);
cp = to_channelpath(dev);
chp_cfg_schedule(cp->chpid, val);
cfg_wait_idle();

Expand All @@ -320,7 +320,7 @@ static DEVICE_ATTR(configure, 0644, chp_configure_show, chp_configure_write);
static ssize_t chp_type_show(struct device *dev, struct device_attribute *attr,
char *buf)
{
struct channel_path *chp = container_of(dev, struct channel_path, dev);
struct channel_path *chp = to_channelpath(dev);

if (!chp)
return 0;
Expand Down Expand Up @@ -374,7 +374,7 @@ static void chp_release(struct device *dev)
{
struct channel_path *cp;

cp = container_of(dev, struct channel_path, dev);
cp = to_channelpath(dev);
kfree(cp);
}

Expand Down

0 comments on commit b196d59

Please sign in to comment.