diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-10 13:00:50 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-16 00:36:06 +0200 |
commit | d9e455f53f6fb93c764de2399c3894bbdfd2caa7 (patch) | |
tree | 196ede4eac46fb8bab03791f0a12f1e7802ac95d /arch/ia64/hp | |
parent | 7d132055814ef17a6c7b69f342244c410a5e000f (diff) |
ACPI / scan: Simplify ACPI driver probing
There is no particular reason why acpi_bus_driver_init() needs to be
a separate function and its location with respect to its only caller,
acpi_device_probe(), makes the code a bit difficult to follow.
Besides, it doesn't really make sense to check if 'device' is not
NULL in acpi_bus_driver_init(), because we've already dereferenced
dev->driver in acpi_device_probe() at that point and, moreover,
'device' cannot be NULL then, because acpi_device_probe() is called
via really_probe() (which also sets dev->driver for that matter).
For these reasons, drop acpi_bus_driver_init() altogether and move
the remaining code from it directly into acpi_device_probe().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/ia64/hp')
0 files changed, 0 insertions, 0 deletions