{
unsigned int hotplug_resources_size = 0;
struct resource *hotplug_resources = NULL;
+ struct acpi_device *acpi_dev;
struct mlxplat_priv *priv;
int i, err;
+ acpi_dev = ACPI_COMPANION(&pdev->dev);
+ if (acpi_dev)
+ mlxplat_dev = pdev;
+
err = mlxplat_pre_init(&hotplug_resources, &hotplug_resources_size);
if (err)
return err;
return 0;
}
+static const struct acpi_device_id mlxplat_acpi_table[] = {
+ { "MLNXBF49", 0 },
+ {}
+};
+MODULE_DEVICE_TABLE(acpi, mlxplat_acpi_table);
+
static struct platform_driver mlxplat_driver = {
.driver = {
.name = "mlxplat",
+ .acpi_match_table = mlxplat_acpi_table,
.probe_type = PROBE_FORCE_SYNCHRONOUS,
},
.probe = mlxplat_probe,