| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * drivers/i2c/busses/i2c-ibm_iic.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 23 | 24 | * |
|---|
| 24 | 25 | * With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi> |
|---|
| 25 | 26 | * and even Frodo Looijaard <frodol@dds.nl> |
|---|
| 26 | | - * |
|---|
| 27 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 28 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 29 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 30 | | - * option) any later version. |
|---|
| 31 | | - * |
|---|
| 32 | 27 | */ |
|---|
| 33 | 28 | |
|---|
| 34 | 29 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 437 | 432 | break; |
|---|
| 438 | 433 | } |
|---|
| 439 | 434 | |
|---|
| 440 | | - if (unlikely(signal_pending(current))){ |
|---|
| 435 | + if (signal_pending(current)){ |
|---|
| 441 | 436 | DBG("%d: poll interrupted\n", dev->idx); |
|---|
| 442 | 437 | ret = -ERESTARTSYS; |
|---|
| 443 | 438 | break; |
|---|
| .. | .. |
|---|
| 699 | 694 | int ret; |
|---|
| 700 | 695 | |
|---|
| 701 | 696 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
|---|
| 702 | | - if (!dev) { |
|---|
| 703 | | - dev_err(&ofdev->dev, "failed to allocate device data\n"); |
|---|
| 697 | + if (!dev) |
|---|
| 704 | 698 | return -ENOMEM; |
|---|
| 705 | | - } |
|---|
| 706 | 699 | |
|---|
| 707 | 700 | platform_set_drvdata(ofdev, dev); |
|---|
| 708 | 701 | |
|---|