diff options
author | Lucas Stach <dev@lynxeye.de> | 2011-02-06 16:42:54 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-02-24 15:44:33 -0500 |
commit | f17811dfa7f07e3df6d0e3c4ab4af8eb47e8fabc (patch) | |
tree | 3786d4bb70e13ab24b0c86e6738dfd9839227c4f | |
parent | ec23802d616f4e33476cca5c7a975ce1682ad2d7 (diff) |
drm/nouveau: use I2C_MODULE_PREFIX kernel define
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_temp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_temp.c b/drivers/gpu/drm/nouveau/nouveau_temp.c index 8d9968e1cba8..649b0413b09f 100644 --- a/drivers/gpu/drm/nouveau/nouveau_temp.c +++ b/drivers/gpu/drm/nouveau/nouveau_temp.c | |||
@@ -239,11 +239,9 @@ static bool | |||
239 | probe_monitoring_device(struct nouveau_i2c_chan *i2c, | 239 | probe_monitoring_device(struct nouveau_i2c_chan *i2c, |
240 | struct i2c_board_info *info) | 240 | struct i2c_board_info *info) |
241 | { | 241 | { |
242 | char modalias[16] = "i2c:"; | ||
243 | struct i2c_client *client; | 242 | struct i2c_client *client; |
244 | 243 | ||
245 | strlcat(modalias, info->type, sizeof(modalias)); | 244 | request_module("%s%s", I2C_MODULE_PREFIX, info->type); |
246 | request_module(modalias); | ||
247 | 245 | ||
248 | client = i2c_new_device(&i2c->adapter, info); | 246 | client = i2c_new_device(&i2c->adapter, info); |
249 | if (!client) | 247 | if (!client) |