diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 15:40:26 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 15:40:26 -0400 |
| commit | c813b4e16ead3c3df98ac84419d4df2adf33fe01 (patch) | |
| tree | 2ca4a5b6966d833b6149e3dda7a4e85d1255779c /drivers/block | |
| parent | c8d8a2321f9c4ee18fbcc399fdc2a77e580a03b9 (diff) | |
| parent | 02683ffdf655b4ae15245376ba6fea6d9e5829a6 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (46 commits)
UIO: Fix mapping of logical and virtual memory
UIO: add automata sercos3 pci card support
UIO: Change driver name of uio_pdrv
UIO: Add alignment warnings for uio-mem
Driver core: add bus_sort_breadthfirst() function
NET: convert the phy_device file to use bus_find_device_by_name
kobject: Cleanup kobject_rename and !CONFIG_SYSFS
kobject: Fix kobject_rename and !CONFIG_SYSFS
sysfs: Make dir and name args to sysfs_notify() const
platform: add new device registration helper
sysfs: use ilookup5() instead of ilookup5_nowait()
PNP: create device attributes via default device attributes
Driver core: make bus_find_device_by_name() more robust
usb: turn dev_warn+WARN_ON combos into dev_WARN
debug: use dev_WARN() rather than WARN_ON() in device_pm_add()
debug: Introduce a dev_WARN() function
sysfs: fix deadlock
device model: Do a quickcheck for driver binding before doing an expensive check
Driver core: Fix cleanup in device_create_vargs().
Driver core: Clarify device cleanup.
...
Diffstat (limited to 'drivers/block')
| -rw-r--r-- | drivers/block/aoe/aoechr.c | 6 | ||||
| -rw-r--r-- | drivers/block/paride/pg.c | 5 | ||||
| -rw-r--r-- | drivers/block/paride/pt.c | 10 | ||||
| -rw-r--r-- | drivers/block/pktcdvd.c | 5 |
4 files changed, 11 insertions, 15 deletions
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c index 1f56d2c5b7f..200efc4d2c1 100644 --- a/drivers/block/aoe/aoechr.c +++ b/drivers/block/aoe/aoechr.c | |||
| @@ -284,9 +284,9 @@ aoechr_init(void) | |||
| 284 | return PTR_ERR(aoe_class); | 284 | return PTR_ERR(aoe_class); |
| 285 | } | 285 | } |
| 286 | for (i = 0; i < ARRAY_SIZE(chardevs); ++i) | 286 | for (i = 0; i < ARRAY_SIZE(chardevs); ++i) |
| 287 | device_create_drvdata(aoe_class, NULL, | 287 | device_create(aoe_class, NULL, |
| 288 | MKDEV(AOE_MAJOR, chardevs[i].minor), | 288 | MKDEV(AOE_MAJOR, chardevs[i].minor), NULL, |
| 289 | NULL, chardevs[i].name); | 289 | chardevs[i].name); |
| 290 | 290 | ||
| 291 | return 0; | 291 | return 0; |
| 292 | } | 292 | } |
diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c index d731ca42f80..9dfa2716300 100644 --- a/drivers/block/paride/pg.c +++ b/drivers/block/paride/pg.c | |||
| @@ -686,9 +686,8 @@ static int __init pg_init(void) | |||
| 686 | for (unit = 0; unit < PG_UNITS; unit++) { | 686 | for (unit = 0; unit < PG_UNITS; unit++) { |
| 687 | struct pg *dev = &devices[unit]; | 687 | struct pg *dev = &devices[unit]; |
| 688 | if (dev->present) | 688 | if (dev->present) |
| 689 | device_create_drvdata(pg_class, NULL, | 689 | device_create(pg_class, NULL, MKDEV(major, unit), NULL, |
| 690 | MKDEV(major, unit), NULL, | 690 | "pg%u", unit); |
| 691 | "pg%u", unit); | ||
| 692 | } | 691 | } |
| 693 | err = 0; | 692 | err = 0; |
| 694 | goto out; | 693 | goto out; |
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c index 673b8b2fd33..5ae229656ea 100644 --- a/drivers/block/paride/pt.c +++ b/drivers/block/paride/pt.c | |||
| @@ -979,12 +979,10 @@ static int __init pt_init(void) | |||
| 979 | 979 | ||
| 980 | for (unit = 0; unit < PT_UNITS; unit++) | 980 | for (unit = 0; unit < PT_UNITS; unit++) |
| 981 | if (pt[unit].present) { | 981 | if (pt[unit].present) { |
| 982 | device_create_drvdata(pt_class, NULL, | 982 | device_create(pt_class, NULL, MKDEV(major, unit), NULL, |
| 983 | MKDEV(major, unit), NULL, | 983 | "pt%d", unit); |
| 984 | "pt%d", unit); | 984 | device_create(pt_class, NULL, MKDEV(major, unit + 128), |
| 985 | device_create_drvdata(pt_class, NULL, | 985 | NULL, "pt%dn", unit); |
| 986 | MKDEV(major, unit + 128), NULL, | ||
| 987 | "pt%dn", unit); | ||
| 988 | } | 986 | } |
| 989 | goto out; | 987 | goto out; |
| 990 | 988 | ||
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 0e077150568..195ca7c720f 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
| @@ -302,9 +302,8 @@ static struct kobj_type kobj_pkt_type_wqueue = { | |||
| 302 | static void pkt_sysfs_dev_new(struct pktcdvd_device *pd) | 302 | static void pkt_sysfs_dev_new(struct pktcdvd_device *pd) |
| 303 | { | 303 | { |
| 304 | if (class_pktcdvd) { | 304 | if (class_pktcdvd) { |
| 305 | pd->dev = device_create_drvdata(class_pktcdvd, NULL, | 305 | pd->dev = device_create(class_pktcdvd, NULL, pd->pkt_dev, NULL, |
| 306 | pd->pkt_dev, NULL, | 306 | "%s", pd->name); |
| 307 | "%s", pd->name); | ||
| 308 | if (IS_ERR(pd->dev)) | 307 | if (IS_ERR(pd->dev)) |
| 309 | pd->dev = NULL; | 308 | pd->dev = NULL; |
| 310 | } | 309 | } |
