static void byt_pwm_setup(struct lpss_private_data *pdata)
{
---- u64 uid;
----
/* Only call pwm_add_table for the first PWM controller */
---- if (acpi_dev_uid_to_integer(pdata->adev, &uid) || uid != 1)
---- return;
----
---- pwm_add_table(byt_pwm_lookup, ARRAY_SIZE(byt_pwm_lookup));
++++ if (acpi_dev_uid_match(pdata->adev, 1))
++++ pwm_add_table(byt_pwm_lookup, ARRAY_SIZE(byt_pwm_lookup));
}
#define LPSS_I2C_ENABLE 0x6c
static void bsw_pwm_setup(struct lpss_private_data *pdata)
{
---- u64 uid;
----
/* Only call pwm_add_table for the first PWM controller */
---- if (acpi_dev_uid_to_integer(pdata->adev, &uid) || uid != 1)
---- return;
----
---- pwm_add_table(bsw_pwm_lookup, ARRAY_SIZE(bsw_pwm_lookup));
++++ if (acpi_dev_uid_match(pdata->adev, 1))
++++ pwm_add_table(bsw_pwm_lookup, ARRAY_SIZE(bsw_pwm_lookup));
}
static const struct property_entry lpt_spi_properties[] = {
if (!clk_name)
return -ENOMEM;
clk = clk_register_fractional_divider(NULL, clk_name, parent,
+++ + 0, prv_base, 1, 15, 16, 15,
CLK_FRAC_DIVIDER_POWER_OF_TWO_PS,
--- - prv_base, 1, 15, 16, 15, 0, NULL);
+++ + NULL);
parent = clk_name;
clk_name = kasprintf(GFP_KERNEL, "%s-update", devname);
return bus_find_device(&pci_bus_type, NULL, &data, match_hid_uid);
}
----static bool acpi_lpss_dep(struct acpi_device *adev, acpi_handle handle)
----{
---- struct acpi_handle_list dep_devices;
---- acpi_status status;
---- bool ret = false;
---- int i;
----
---- if (!acpi_has_method(adev->handle, "_DEP"))
---- return false;
----
---- status = acpi_evaluate_reference(adev->handle, "_DEP", NULL,
---- &dep_devices);
---- if (ACPI_FAILURE(status)) {
---- dev_dbg(&adev->dev, "Failed to evaluate _DEP.\n");
---- return false;
---- }
----
---- for (i = 0; i < dep_devices.count; i++) {
---- if (dep_devices.handles[i] == handle) {
---- ret = true;
---- break;
---- }
---- }
----
---- acpi_handle_list_free(&dep_devices);
---- return ret;
----}
----
static void acpi_lpss_link_consumer(struct device *dev1,
const struct lpss_device_links *link)
{
return;
if ((link->dep_missing_ids && dmi_check_system(link->dep_missing_ids))
---- || acpi_lpss_dep(ACPI_COMPANION(dev2), ACPI_HANDLE(dev1)))
++++ || acpi_device_dep(ACPI_HANDLE(dev2), ACPI_HANDLE(dev1)))
device_link_add(dev2, dev1, link->flags);
put_device(dev2);
return;
if ((link->dep_missing_ids && dmi_check_system(link->dep_missing_ids))
---- || acpi_lpss_dep(ACPI_COMPANION(dev1), ACPI_HANDLE(dev2)))
++++ || acpi_device_dep(ACPI_HANDLE(dev1), ACPI_HANDLE(dev2)))
device_link_add(dev1, dev2, link->flags);
put_device(dev2);