forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/iio/adc/da9150-gpadc.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * DA9150 GPADC Driver
34 *
45 * Copyright (c) 2014 Dialog Semiconductor
56 *
67 * 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.
128 */
139
1410 #include <linux/kernel.h>
....@@ -341,10 +337,8 @@
341337 init_completion(&gpadc->complete);
342338
343339 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)
346341 return irq;
347
- }
348342
349343 ret = devm_request_threaded_irq(dev, irq, NULL, da9150_gpadc_irq,
350344 IRQF_ONESHOT, "GPADC", gpadc);
....@@ -360,8 +354,6 @@
360354 }
361355
362356 indio_dev->name = dev_name(dev);
363
- indio_dev->dev.parent = dev;
364
- indio_dev->dev.of_node = pdev->dev.of_node;
365357 indio_dev->info = &da9150_gpadc_info;
366358 indio_dev->modes = INDIO_DIRECT_MODE;
367359 indio_dev->channels = da9150_gpadc_channels;