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 8400291 commit fea88a1Copy full SHA for fea88a1
drivers/video/backlight/l4f00242t03.c
@@ -166,6 +166,7 @@ static const struct lcd_ops l4f_ops = {
166
static int l4f00242t03_probe(struct spi_device *spi)
167
{
168
struct l4f00242t03_priv *priv;
169
+ int ret;
170
171
priv = devm_kzalloc(&spi->dev, sizeof(struct l4f00242t03_priv),
172
GFP_KERNEL);
@@ -174,7 +175,9 @@ static int l4f00242t03_probe(struct spi_device *spi)
174
175
176
spi_set_drvdata(spi, priv);
177
spi->bits_per_word = 9;
- spi_setup(spi);
178
+ ret = spi_setup(spi);
179
+ if (ret < 0)
180
+ return dev_err_probe(&spi->dev, ret, "Unable to setup spi.\n");
181
182
priv->spi = spi;
183
0 commit comments