Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188799
b: refs/heads/master
c: 4d26e13
h: refs/heads/master
i:
  188797: 2d8753d
  188795: 9f33624
  188791: 5cbfeb1
  188783: cf633ec
  188767: 6a1d903
  188735: dec4c42
  188671: 29c5afa
v: v3
  • Loading branch information
Magnus Damm authored and Greg Kroah-Hartman committed Mar 19, 2010
1 parent 8354fe9 commit 349039b
Show file tree
Hide file tree
Showing 2 changed files with 21 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: 3691c964fa1a8f0eb5e5f00c644ef1bdd7e35a95
refs/heads/master: 4d26e139f0b7d4c0700d6993506f1f60e2f2caa5
27 changes: 20 additions & 7 deletions trunk/drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,9 +1052,11 @@ static __initdata LIST_HEAD(early_platform_driver_list);
static __initdata LIST_HEAD(early_platform_device_list);

/**
* early_platform_driver_register
* early_platform_driver_register - register early platform driver
* @epdrv: early_platform driver structure
* @buf: string passed from early_param()
*
* Helper function for early_platform_init() / early_platform_init_buffer()
*/
int __init early_platform_driver_register(struct early_platform_driver *epdrv,
char *buf)
Expand Down Expand Up @@ -1106,9 +1108,12 @@ int __init early_platform_driver_register(struct early_platform_driver *epdrv,
}

/**
* early_platform_add_devices - add a numbers of early platform devices
* early_platform_add_devices - adds a number of early platform devices
* @devs: array of early platform devices to add
* @num: number of early platform devices in array
*
* Used by early architecture code to register early platform devices and
* their platform data.
*/
void __init early_platform_add_devices(struct platform_device **devs, int num)
{
Expand All @@ -1128,8 +1133,12 @@ void __init early_platform_add_devices(struct platform_device **devs, int num)
}

/**
* early_platform_driver_register_all
* early_platform_driver_register_all - register early platform drivers
* @class_str: string to identify early platform driver class
*
* Used by architecture code to register all early platform drivers
* for a certain class. If omitted then only early platform drivers
* with matching kernel command line class parameters will be registered.
*/
void __init early_platform_driver_register_all(char *class_str)
{
Expand All @@ -1151,7 +1160,7 @@ void __init early_platform_driver_register_all(char *class_str)
}

/**
* early_platform_match
* early_platform_match - find early platform device matching driver
* @epdrv: early platform driver structure
* @id: id to match against
*/
Expand All @@ -1169,7 +1178,7 @@ early_platform_match(struct early_platform_driver *epdrv, int id)
}

/**
* early_platform_left
* early_platform_left - check if early platform driver has matching devices
* @epdrv: early platform driver structure
* @id: return true if id or above exists
*/
Expand All @@ -1187,7 +1196,7 @@ static __init int early_platform_left(struct early_platform_driver *epdrv,
}

/**
* early_platform_driver_probe_id
* early_platform_driver_probe_id - probe drivers matching class_str and id
* @class_str: string to identify early platform driver class
* @id: id to match against
* @nr_probe: number of platform devices to successfully probe before exiting
Expand Down Expand Up @@ -1257,10 +1266,14 @@ static int __init early_platform_driver_probe_id(char *class_str,
}

/**
* early_platform_driver_probe
* early_platform_driver_probe - probe a class of registered drivers
* @class_str: string to identify early platform driver class
* @nr_probe: number of platform devices to successfully probe before exiting
* @user_only: only probe user specified early platform devices
*
* Used by architecture code to probe registered early platform drivers
* within a certain class. For probe to happen a registered early platform
* device matching a registered early platform driver is needed.
*/
int __init early_platform_driver_probe(char *class_str,
int nr_probe,
Expand Down

0 comments on commit 349039b

Please sign in to comment.