16 Nov
2011
16 Nov
'11
11:35 a.m.
On Wed, Nov 16, 2011 at 12:06:59PM +0200, Leon Romanovsky wrote:
+#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) static __devinit int alc5632_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) { @@ -1203,24 +1204,27 @@ static struct i2c_driver alc5632_i2c_driver = { .remove = __devexit_p(alc5632_i2c_remove), .id_table = alc5632_i2c_table, }; +#endif
This is only needed if the driver supports more than one control interface. If it only supports I2C then this should be sorted out at Kconfig stage.