|
@@ -166,7 +166,7 @@ static int dw_i2c_probe(struct platform_device *pdev)
|
|
/* fast mode by default because of legacy reasons */
|
|
/* fast mode by default because of legacy reasons */
|
|
clk_freq = 400000;
|
|
clk_freq = 400000;
|
|
|
|
|
|
- if (ACPI_COMPANION(&pdev->dev)) {
|
|
|
|
|
|
+ if (has_acpi_companion(&pdev->dev)) {
|
|
dw_i2c_acpi_configure(pdev);
|
|
dw_i2c_acpi_configure(pdev);
|
|
} else if (pdev->dev.of_node) {
|
|
} else if (pdev->dev.of_node) {
|
|
of_property_read_u32(pdev->dev.of_node,
|
|
of_property_read_u32(pdev->dev.of_node,
|
|
@@ -286,7 +286,7 @@ static int dw_i2c_remove(struct platform_device *pdev)
|
|
pm_runtime_put(&pdev->dev);
|
|
pm_runtime_put(&pdev->dev);
|
|
pm_runtime_disable(&pdev->dev);
|
|
pm_runtime_disable(&pdev->dev);
|
|
|
|
|
|
- if (ACPI_COMPANION(&pdev->dev))
|
|
|
|
|
|
+ if (has_acpi_companion(&pdev->dev))
|
|
dw_i2c_acpi_unconfigure(pdev);
|
|
dw_i2c_acpi_unconfigure(pdev);
|
|
|
|
|
|
return 0;
|
|
return 0;
|