diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 15:58:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 15:58:54 -0400 |
commit | d868772fff6c4b881d66af8640251714e1aefa98 (patch) | |
tree | c95a68d358d5c875d25763ffe9a44fe9f2081f34 /drivers/net/phy/fixed.c | |
parent | a205752d1ad2d37d6597aaae5a56fc396a770868 (diff) | |
parent | 404d5b185b4eb56d6fa2f7bd27833f8df1c38ce4 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (46 commits)
dev_dbg: check dev_dbg() arguments
drivers/base/attribute_container.c: use mutex instead of binary semaphore
mod_sysfs_setup() doesn't return errno when kobject_add_dir() failure occurs
s2ram: add arch irq disable/enable hooks
define platform wakeup hook, use in pci_enable_wake()
security: prevent permission checking of file removal via sysfs_remove_group()
device_schedule_callback() needs a module reference
s390: cio: Delay uevents for subchannels
sysfs: bin.c printk fix
Driver core: use mutex instead of semaphore in DMA pool handler
driver core: bus_add_driver should return an error if no bus
debugfs: Add debugfs_create_u64()
the overdue removal of the mount/umount uevents
kobject: Comment and warning fixes to kobject.c
Driver core: warn when userspace writes to the uevent file in a non-supported way
Driver core: make uevent-environment available in uevent-file
kobject core: remove rwsem from struct subsystem
qeth: Remove usage of subsys.rwsem
PHY: remove rwsem use from phy core
IEEE1394: remove rwsem use from ieee1394 core
...
Diffstat (limited to 'drivers/net/phy/fixed.c')
-rw-r--r-- | drivers/net/phy/fixed.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index 66da91bb1388..68c99b4c5255 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed.c | |||
@@ -276,21 +276,15 @@ static int fixed_mdio_register_device(int number, int speed, int duplex) | |||
276 | artificially, we are binding the driver here by hand; | 276 | artificially, we are binding the driver here by hand; |
277 | it will be the same for all the fixed phys anyway. | 277 | it will be the same for all the fixed phys anyway. |
278 | */ | 278 | */ |
279 | down_write(&phydev->dev.bus->subsys.rwsem); | ||
280 | |||
281 | phydev->dev.driver = &fixed_mdio_driver.driver; | 279 | phydev->dev.driver = &fixed_mdio_driver.driver; |
282 | 280 | ||
283 | err = phydev->dev.driver->probe(&phydev->dev); | 281 | err = phydev->dev.driver->probe(&phydev->dev); |
284 | if(err < 0) { | 282 | if(err < 0) { |
285 | printk(KERN_ERR "Phy %s: problems with fixed driver\n",phydev->dev.bus_id); | 283 | printk(KERN_ERR "Phy %s: problems with fixed driver\n",phydev->dev.bus_id); |
286 | up_write(&phydev->dev.bus->subsys.rwsem); | ||
287 | goto probe_fail; | 284 | goto probe_fail; |
288 | } | 285 | } |
289 | 286 | ||
290 | err = device_bind_driver(&phydev->dev); | 287 | err = device_bind_driver(&phydev->dev); |
291 | |||
292 | up_write(&phydev->dev.bus->subsys.rwsem); | ||
293 | |||
294 | if (err) | 288 | if (err) |
295 | goto probe_fail; | 289 | goto probe_fail; |
296 | 290 | ||