drm/nouveau: use I2C_MODULE_PREFIX kernel define
authorLucas Stach <dev@lynxeye.de>
Sun, 6 Feb 2011 21:42:54 +0000 (22:42 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 24 Feb 2011 20:44:33 +0000 (06:44 +1000)
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_temp.c

index 8d9968e1cba8fc47f0b655d16d8aa46c9b8c0554..649b0413b09fc7eee2d7ddf9cd1f1621daa48253 100644 (file)
@@ -239,11 +239,9 @@ static bool
 probe_monitoring_device(struct nouveau_i2c_chan *i2c,
                        struct i2c_board_info *info)
 {
-       char modalias[16] = "i2c:";
        struct i2c_client *client;
 
-       strlcat(modalias, info->type, sizeof(modalias));
-       request_module(modalias);
+       request_module("%s%s", I2C_MODULE_PREFIX, info->type);
 
        client = i2c_new_device(&i2c->adapter, info);
        if (!client)