File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ static int bd6107_probe(struct i2c_client *client)
119
119
struct backlight_device * backlight ;
120
120
struct backlight_properties props ;
121
121
struct bd6107 * bd ;
122
- int ret ;
123
122
124
123
if (pdata == NULL ) {
125
124
dev_err (& client -> dev , "No platform data\n" );
@@ -147,11 +146,9 @@ static int bd6107_probe(struct i2c_client *client)
147
146
* the reset.
148
147
*/
149
148
bd -> reset = devm_gpiod_get (& client -> dev , "reset" , GPIOD_OUT_HIGH );
150
- if (IS_ERR (bd -> reset )) {
151
- dev_err (& client -> dev , "unable to request reset GPIO\n" );
152
- ret = PTR_ERR (bd -> reset );
153
- return ret ;
154
- }
149
+ if (IS_ERR (bd -> reset ))
150
+ return dev_err_probe (& client -> dev , PTR_ERR (bd -> reset ),
151
+ "unable to request reset GPIO\n" );
155
152
156
153
memset (& props , 0 , sizeof (props ));
157
154
props .type = BACKLIGHT_RAW ;
You can’t perform that action at this time.
0 commit comments