Skip to content

Commit

Permalink
i2c: Kill rogue driver IDs
Browse files Browse the repository at this point in the history
I2C driver IDs are optional, so if you don't need one, just omit it.

Signed-off-by: Jean Delvare <[email protected]>
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Jan 27, 2008
1 parent 2cdddeb commit 05c7aba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions drivers/macintosh/therm_windtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@

#define LOG_TEMP 0 /* continously log temperature */

#define I2C_DRIVERID_G4FAN 0x9001 /* fixme */

static int do_probe( struct i2c_adapter *adapter, int addr, int kind);

/* scan 0x48-0x4f (DS1775) and 0x2c-2x2f (ADM1030) */
Expand Down Expand Up @@ -357,7 +355,6 @@ static struct i2c_driver g4fan_driver = {
.driver = {
.name = "therm_windtunnel",
},
.id = I2C_DRIVERID_G4FAN,
.attach_adapter = do_attach,
.detach_client = do_detach,
};
Expand Down
1 change: 0 additions & 1 deletion drivers/usb/host/ohci-pnx4008.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ static struct i2c_client_address_data addr_data = {
};

struct i2c_driver isp1301_driver = {
.id = I2C_DRIVERID_I2CDEV, /* Fake Id */
.class = I2C_CLASS_HWMON,
.attach_adapter = isp1301_probe,
.detach_client = isp1301_detach,
Expand Down
3 changes: 0 additions & 3 deletions sound/ppc/keywest.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,13 @@
static struct pmac_keywest *keywest_ctx;


#define I2C_DRIVERID_KEYWEST 0xFEBA

static int keywest_attach_adapter(struct i2c_adapter *adapter);
static int keywest_detach_client(struct i2c_client *client);

struct i2c_driver keywest_driver = {
.driver = {
.name = "PMac Keywest Audio",
},
.id = I2C_DRIVERID_KEYWEST,
.attach_adapter = &keywest_attach_adapter,
.detach_client = &keywest_detach_client,
};
Expand Down

0 comments on commit 05c7aba

Please sign in to comment.