Commit ef01a6de authored by Biju Das's avatar Biju Das Committed by Mark Brown
parent aa11a78f
...@@ -988,13 +988,6 @@ static const struct wm8580_driver_data wm8581_data = { ...@@ -988,13 +988,6 @@ static const struct wm8580_driver_data wm8581_data = {
.num_dacs = 4, .num_dacs = 4,
}; };
static const struct of_device_id wm8580_of_match[] = {
{ .compatible = "wlf,wm8580", .data = &wm8580_data },
{ .compatible = "wlf,wm8581", .data = &wm8581_data },
{ }
};
MODULE_DEVICE_TABLE(of, wm8580_of_match);
static int wm8580_i2c_probe(struct i2c_client *i2c) static int wm8580_i2c_probe(struct i2c_client *i2c)
{ {
struct wm8580_priv *wm8580; struct wm8580_priv *wm8580;
...@@ -1031,6 +1024,13 @@ static int wm8580_i2c_probe(struct i2c_client *i2c) ...@@ -1031,6 +1024,13 @@ static int wm8580_i2c_probe(struct i2c_client *i2c)
return ret; return ret;
} }
static const struct of_device_id wm8580_of_match[] = {
{ .compatible = "wlf,wm8580", .data = &wm8580_data },
{ .compatible = "wlf,wm8581", .data = &wm8581_data },
{ }
};
MODULE_DEVICE_TABLE(of, wm8580_of_match);
static const struct i2c_device_id wm8580_i2c_id[] = { static const struct i2c_device_id wm8580_i2c_id[] = {
{ "wm8580", (kernel_ulong_t)&wm8580_data }, { "wm8580", (kernel_ulong_t)&wm8580_data },
{ "wm8581", (kernel_ulong_t)&wm8581_data }, { "wm8581", (kernel_ulong_t)&wm8581_data },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment