@@ -435,17 +435,6 @@ static int mma9551_gpio_probe(struct iio_dev *indio_dev)
return 0;
}
-static const char *mma9551_match_acpi_device(struct device *dev)
-{
- const struct acpi_device_id *id;
-
- id = acpi_match_device(dev->driver->acpi_match_table, dev);
- if (!id)
- return NULL;
-
- return dev_name(dev);
-}
-
static int mma9551_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
@@ -464,8 +453,6 @@ static int mma9551_probe(struct i2c_client *client,
if (id)
name = id->name;
- else if (ACPI_HANDLE(&client->dev))
- name = mma9551_match_acpi_device(&client->dev);
ret = mma9551_init(data);
if (ret < 0)
@@ -591,13 +578,6 @@ static const struct dev_pm_ops mma9551_pm_ops = {
mma9551_runtime_resume, NULL)
};
-static const struct acpi_device_id mma9551_acpi_match[] = {
- {"MMA9551", 0},
- {},
-};
-
-MODULE_DEVICE_TABLE(acpi, mma9551_acpi_match);
-
static const struct i2c_device_id mma9551_id[] = {
{"mma9551", 0},
{}
@@ -608,7 +588,6 @@ MODULE_DEVICE_TABLE(i2c, mma9551_id);
static struct i2c_driver mma9551_driver = {
.driver = {
.name = MMA9551_DRV_NAME,
- .acpi_match_table = ACPI_PTR(mma9551_acpi_match),
.pm = &mma9551_pm_ops,
},
.probe = mma9551_probe,
@@ -1062,17 +1062,6 @@ static irqreturn_t mma9553_event_handler(int irq, void *private)
return IRQ_HANDLED;
}
-static const char *mma9553_match_acpi_device(struct device *dev)
-{
- const struct acpi_device_id *id;
-
- id = acpi_match_device(dev->driver->acpi_match_table, dev);
- if (!id)
- return NULL;
-
- return dev_name(dev);
-}
-
static int mma9553_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
@@ -1091,8 +1080,6 @@ static int mma9553_probe(struct i2c_client *client,
if (id)
name = id->name;
- else if (ACPI_HANDLE(&client->dev))
- name = mma9553_match_acpi_device(&client->dev);
else
return -ENOSYS;
@@ -1230,13 +1217,6 @@ static const struct dev_pm_ops mma9553_pm_ops = {
mma9553_runtime_resume, NULL)
};
-static const struct acpi_device_id mma9553_acpi_match[] = {
- {"MMA9553", 0},
- {},
-};
-
-MODULE_DEVICE_TABLE(acpi, mma9553_acpi_match);
-
static const struct i2c_device_id mma9553_id[] = {
{"mma9553", 0},
{},
@@ -1247,7 +1227,6 @@ MODULE_DEVICE_TABLE(i2c, mma9553_id);
static struct i2c_driver mma9553_driver = {
.driver = {
.name = MMA9553_DRV_NAME,
- .acpi_match_table = ACPI_PTR(mma9553_acpi_match),
.pm = &mma9553_pm_ops,
},
.probe = mma9553_probe,