Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151280
b: refs/heads/master
c: 317ccc4
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jun 16, 2009
1 parent 24365a6 commit a60ed90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: a1b4b12b372e76d22d4f3bf58b47e4cf2fb132fe
refs/heads/master: 317ccc4246bf205807c4d2f270d7fc8f024a9dc3
6 changes: 3 additions & 3 deletions trunk/drivers/char/hvcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static void __exit hvcs_module_exit(void);

static inline struct hvcs_struct *from_vio_dev(struct vio_dev *viod)
{
return viod->dev.driver_data;
return dev_get_drvdata(&viod->dev);
}
/* The sysfs interface for the driver and devices */

Expand Down Expand Up @@ -785,7 +785,7 @@ static int __devinit hvcs_probe(
kref_init(&hvcsd->kref);

hvcsd->vdev = dev;
dev->dev.driver_data = hvcsd;
dev_set_drvdata(&dev->dev, hvcsd);

hvcsd->index = index;

Expand Down Expand Up @@ -831,7 +831,7 @@ static int __devinit hvcs_probe(

static int __devexit hvcs_remove(struct vio_dev *dev)
{
struct hvcs_struct *hvcsd = dev->dev.driver_data;
struct hvcs_struct *hvcsd = dev_get_drvdata(&dev->dev);
unsigned long flags;
struct tty_struct *tty;

Expand Down

0 comments on commit a60ed90

Please sign in to comment.