File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -481,13 +481,14 @@ static int bma150_register_input_device(struct bma150_data *bma150)
481
481
idev -> close = bma150_irq_close ;
482
482
input_set_drvdata (idev , bma150 );
483
483
484
+ bma150 -> input = idev ;
485
+
484
486
error = input_register_device (idev );
485
487
if (error ) {
486
488
input_free_device (idev );
487
489
return error ;
488
490
}
489
491
490
- bma150 -> input = idev ;
491
492
return 0 ;
492
493
}
493
494
@@ -510,15 +511,15 @@ static int bma150_register_polled_device(struct bma150_data *bma150)
510
511
511
512
bma150_init_input_device (bma150 , ipoll_dev -> input );
512
513
514
+ bma150 -> input_polled = ipoll_dev ;
515
+ bma150 -> input = ipoll_dev -> input ;
516
+
513
517
error = input_register_polled_device (ipoll_dev );
514
518
if (error ) {
515
519
input_free_polled_device (ipoll_dev );
516
520
return error ;
517
521
}
518
522
519
- bma150 -> input_polled = ipoll_dev ;
520
- bma150 -> input = ipoll_dev -> input ;
521
-
522
523
return 0 ;
523
524
}
524
525
You can’t perform that action at this time.
0 commit comments