platform/x86: wmi: add context argument to the probe function
The struct wmi_device_id has a context pointer field, forward this pointer as an argument to the probe function in struct wmi_driver. Update existing users of the same probe function to accept this new context argument. Signed-off-by: Mattias Jacobsson <2pi@mok.nu> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:

committed by
Andy Shevchenko

parent
a48e23385f
commit
440c4983de
@@ -945,7 +945,8 @@ static int wmi_dev_probe(struct device *dev)
|
||||
dev_warn(dev, "failed to enable device -- probing anyway\n");
|
||||
|
||||
if (wdriver->probe) {
|
||||
ret = wdriver->probe(dev_to_wdev(dev));
|
||||
ret = wdriver->probe(dev_to_wdev(dev),
|
||||
find_guid_context(wblock, wdriver));
|
||||
if (ret != 0)
|
||||
goto probe_failure;
|
||||
}
|
||||
|
Reference in New Issue
Block a user