--- zzzz-none-000/linux-3.10.107/drivers/macintosh/smu.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/macintosh/smu.c 2021-02-04 17:41:59.000000000 +0000 @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -556,8 +557,7 @@ return 0; fail_msg_node: - if (smu->msg_node) - of_node_put(smu->msg_node); + of_node_put(smu->msg_node); fail_db_node: of_node_put(smu->db_node); fail_bootmem: @@ -666,7 +666,6 @@ { .driver = { .name = "smu", - .owner = THIS_MODULE, .of_match_table = smu_platform_match, }, .probe = smu_platform_probe, @@ -1256,7 +1255,8 @@ if (pp->busy && pp->cmd.status != 1) mask |= POLLIN; spin_unlock_irqrestore(&pp->lock, flags); - } if (pp->mode == smu_file_events) { + } + if (pp->mode == smu_file_events) { /* Not yet implemented */ } return mask;