| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * DA9150 GPADC Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2014 Dialog Semiconductor |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 10 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 11 | | - * option) any later version. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 341 | 337 | init_completion(&gpadc->complete); |
|---|
| 342 | 338 | |
|---|
| 343 | 339 | irq = platform_get_irq_byname(pdev, "GPADC"); |
|---|
| 344 | | - if (irq < 0) { |
|---|
| 345 | | - dev_err(dev, "Failed to get IRQ: %d\n", irq); |
|---|
| 340 | + if (irq < 0) |
|---|
| 346 | 341 | return irq; |
|---|
| 347 | | - } |
|---|
| 348 | 342 | |
|---|
| 349 | 343 | ret = devm_request_threaded_irq(dev, irq, NULL, da9150_gpadc_irq, |
|---|
| 350 | 344 | IRQF_ONESHOT, "GPADC", gpadc); |
|---|
| .. | .. |
|---|
| 360 | 354 | } |
|---|
| 361 | 355 | |
|---|
| 362 | 356 | indio_dev->name = dev_name(dev); |
|---|
| 363 | | - indio_dev->dev.parent = dev; |
|---|
| 364 | | - indio_dev->dev.of_node = pdev->dev.of_node; |
|---|
| 365 | 357 | indio_dev->info = &da9150_gpadc_info; |
|---|
| 366 | 358 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 367 | 359 | indio_dev->channels = da9150_gpadc_channels; |
|---|