Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133451
b: refs/heads/master
c: b23530e
h: refs/heads/master
i:
  133449: 17e9366
  133447: d4f72db
v: v3
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent 20817dc commit a955582
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 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: 04256b4a8fc73f54cd14f20867882c299728a446
refs/heads/master: b23530ebc339c4092ae2c9f37341a5398fea8b89
8 changes: 2 additions & 6 deletions trunk/drivers/base/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,12 @@ int driver_probe_done(void)
/**
* wait_for_device_probe
* Wait for device probing to be completed.
*
* Note: this function polls at 100 msec intervals.
*/
int wait_for_device_probe(void)
void wait_for_device_probe(void)
{
/* wait for the known devices to complete their probing */
while (driver_probe_done() != 0)
msleep(100);
wait_event(probe_waitqueue, atomic_read(&probe_count) == 0);
async_synchronize_full();
return 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ extern void put_driver(struct device_driver *drv);
extern struct device_driver *driver_find(const char *name,
struct bus_type *bus);
extern int driver_probe_done(void);
extern int wait_for_device_probe(void);
extern void wait_for_device_probe(void);


/* sysfs interface for exporting driver attributes */
Expand Down

0 comments on commit a955582

Please sign in to comment.