diff options
author | 2013-06-10 13:00:50 +0200 | |
---|---|---|
committer | 2013-06-16 00:36:06 +0200 | |
commit | d9e455f53f6fb93c764de2399c3894bbdfd2caa7 (patch) | |
tree | 196ede4eac46fb8bab03791f0a12f1e7802ac95d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 3.10-rc6 (diff) | |
download | linux-dev-d9e455f53f6fb93c764de2399c3894bbdfd2caa7.tar.xz linux-dev-d9e455f53f6fb93c764de2399c3894bbdfd2caa7.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions