.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Hauppauge HD PVR USB driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com) |
---|
5 | 6 | * Copyright (C) 2008 Janne Grunau (j@jannau.net) |
---|
6 | 7 | * Copyright (C) 2008 John Poet |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public License as |
---|
10 | | - * published by the Free Software Foundation, version 2. |
---|
11 | | - * |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/kernel.h> |
---|
.. | .. |
---|
367 | 363 | } |
---|
368 | 364 | |
---|
369 | 365 | client = hdpvr_register_ir_i2c(dev); |
---|
370 | | - if (!client) { |
---|
| 366 | + if (IS_ERR(client)) { |
---|
371 | 367 | v4l2_err(&dev->v4l2_dev, "i2c IR device register failed\n"); |
---|
372 | | - retval = -ENODEV; |
---|
| 368 | + retval = PTR_ERR(client); |
---|
373 | 369 | goto reg_fail; |
---|
374 | 370 | } |
---|
375 | 371 | #endif |
---|