From: Lucas Stach Date: Sun, 6 Feb 2011 21:42:54 +0000 (+0100) Subject: drm/nouveau: use I2C_MODULE_PREFIX kernel define X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f17811dfa7f07e3df6d0e3c4ab4af8eb47e8fabc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/nouveau: use I2C_MODULE_PREFIX kernel define Signed-off-by: Lucas Stach Signed-off-by: Ben Skeggs --- 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 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)