We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04a5ba commit 9e1b93bCopy full SHA for 9e1b93b
drivers/video/backlight/tosa_lcd.c
@@ -107,7 +107,7 @@ static void tosa_lcd_tg_on(struct tosa_lcd_data *data)
107
/* TG LCD GVSS */
108
tosa_tg_send(spi, TG_PINICTL, 0x0);
109
110
- if (!data->i2c) {
+ if (IS_ERR_OR_NULL(data->i2c)) {
111
/*
112
* after the pannel is powered up the first time,
113
* we can access the i2c bus so probe for the DAC
@@ -119,7 +119,7 @@ static void tosa_lcd_tg_on(struct tosa_lcd_data *data)
119
.addr = DAC_BASE,
120
.platform_data = data->spi,
121
};
122
- data->i2c = i2c_new_device(adap, &info);
+ data->i2c = i2c_new_client_device(adap, &info);
123
}
124
125
0 commit comments