diff options
Diffstat (limited to 'sound/soc/codecs/max98088.c')
-rw-r--r-- | sound/soc/codecs/max98088.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index af7324b79dd0..3264a5169306 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c | |||
@@ -2107,23 +2107,7 @@ static struct i2c_driver max98088_i2c_driver = { | |||
2107 | .id_table = max98088_i2c_id, | 2107 | .id_table = max98088_i2c_id, |
2108 | }; | 2108 | }; |
2109 | 2109 | ||
2110 | static int __init max98088_init(void) | 2110 | module_i2c_driver(max98088_i2c_driver); |
2111 | { | ||
2112 | int ret; | ||
2113 | |||
2114 | ret = i2c_add_driver(&max98088_i2c_driver); | ||
2115 | if (ret) | ||
2116 | pr_err("Failed to register max98088 I2C driver: %d\n", ret); | ||
2117 | |||
2118 | return ret; | ||
2119 | } | ||
2120 | module_init(max98088_init); | ||
2121 | |||
2122 | static void __exit max98088_exit(void) | ||
2123 | { | ||
2124 | i2c_del_driver(&max98088_i2c_driver); | ||
2125 | } | ||
2126 | module_exit(max98088_exit); | ||
2127 | 2111 | ||
2128 | MODULE_DESCRIPTION("ALSA SoC MAX98088 driver"); | 2112 | MODULE_DESCRIPTION("ALSA SoC MAX98088 driver"); |
2129 | MODULE_AUTHOR("Peter Hsiang, Jesse Marroquin"); | 2113 | MODULE_AUTHOR("Peter Hsiang, Jesse Marroquin"); |