27 Mar
2011
27 Mar
'11
6:11 a.m.
On Sat, Mar 26, 2011 at 08:12, Mark Brown wrote:
On Sat, Mar 26, 2011 at 05:07:20AM -0400, Mike Frysinger wrote:
+#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
- ret = i2c_add_driver(&ssm2604_i2c_driver);
- if (ret != 0) {
- printk(KERN_ERR "Failed to register ssm2604 I2C driver: %d\n",
- ret);
- }
+#endif
If the device only supports I2C then there's no need for the ifdefs.
i thought in the past you wanted these things because you wanted to be able to build codecs regardless of the bus support (for testing iirc?) -mike