X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Fmacintosh%2Ftherm_pm72.c;h=ea32c7e5a9af116c49e885b1e015fe9742f24758;hb=a8a84540eb3fd0493f250dc1c513bef6810a50fd;hp=a028598af2d32ae030596bff2e83145420271d65;hpb=f815c335d21f9965f8dbe142fd168aaba1baf98e;p=cascardo%2Flinux.git diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh/therm_pm72.c index a028598af2d3..ea32c7e5a9af 100644 --- a/drivers/macintosh/therm_pm72.c +++ b/drivers/macintosh/therm_pm72.c @@ -286,6 +286,8 @@ struct fcu_fan_table fcu_fans[] = { }, }; +static struct i2c_driver therm_pm72_driver; + /* * Utility function to create an i2c_client structure and * attach it to one of u3 adapters @@ -318,7 +320,7 @@ static struct i2c_client *attach_i2c_chip(int id, const char *name) * Let i2c-core delete that device on driver removal. * This is safe because i2c-core holds the core_lock mutex for us. */ - list_add_tail(&clt->detected, &clt->driver->clients); + list_add_tail(&clt->detected, &therm_pm72_driver.clients); return clt; }