diff options
author | David S. Miller <davem@davemloft.net> | 2019-02-20 03:34:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-20 03:34:07 -0500 |
commit | 375ca548f7e3ac82acdd0959eddd1fa0e17c35cc (patch) | |
tree | 5360dc427e4eff7123613419ee522b7fda831de0 /drivers/input/misc/bma150.c | |
parent | 58066ac9d7f5dcde4ef08c03b7e127f0522d9ea0 (diff) | |
parent | 40e196a906d969fd10d885c692d2674b3d657006 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Two easily resolvable overlapping change conflicts, one in
TCP and one in the eBPF verifier.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/input/misc/bma150.c')
-rw-r--r-- | drivers/input/misc/bma150.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/input/misc/bma150.c b/drivers/input/misc/bma150.c index 1efcfdf9f8a8..dd9dd4e40827 100644 --- a/drivers/input/misc/bma150.c +++ b/drivers/input/misc/bma150.c | |||
@@ -481,13 +481,14 @@ static int bma150_register_input_device(struct bma150_data *bma150) | |||
481 | idev->close = bma150_irq_close; | 481 | idev->close = bma150_irq_close; |
482 | input_set_drvdata(idev, bma150); | 482 | input_set_drvdata(idev, bma150); |
483 | 483 | ||
484 | bma150->input = idev; | ||
485 | |||
484 | error = input_register_device(idev); | 486 | error = input_register_device(idev); |
485 | if (error) { | 487 | if (error) { |
486 | input_free_device(idev); | 488 | input_free_device(idev); |
487 | return error; | 489 | return error; |
488 | } | 490 | } |
489 | 491 | ||
490 | bma150->input = idev; | ||
491 | return 0; | 492 | return 0; |
492 | } | 493 | } |
493 | 494 | ||
@@ -510,15 +511,15 @@ static int bma150_register_polled_device(struct bma150_data *bma150) | |||
510 | 511 | ||
511 | bma150_init_input_device(bma150, ipoll_dev->input); | 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 | error = input_register_polled_device(ipoll_dev); | 517 | error = input_register_polled_device(ipoll_dev); |
514 | if (error) { | 518 | if (error) { |
515 | input_free_polled_device(ipoll_dev); | 519 | input_free_polled_device(ipoll_dev); |
516 | return error; | 520 | return error; |
517 | } | 521 | } |
518 | 522 | ||
519 | bma150->input_polled = ipoll_dev; | ||
520 | bma150->input = ipoll_dev->input; | ||
521 | |||
522 | return 0; | 523 | return 0; |
523 | } | 524 | } |
524 | 525 | ||