hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/regulator/max8660.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * max8660.c -- Voltage regulation for the Maxim 8660/8661
34 *
45 * based on max1586.c and wm8400-regulator.c
56 *
67 * Copyright (C) 2009 Wolfram Sang, Pengutronix e.K.
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 Free
10
- * Software Foundation; version 2 of the License.
11
- *
12
- * This program is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
16
- *
17
- * You should have received a copy of the GNU General Public License along with
18
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19
- * Place, Suite 330, Boston, MA 02111-1307 USA
208 *
219 * Some info:
2210 *
....@@ -34,7 +22,6 @@
3422 * If the driver is feature complete, it might be worth to check if one set of
3523 * functions for V3-V7 is sufficient. For maximum flexibility during
3624 * development, they are separated for now.
37
- *
3825 */
3926
4027 #include <linux/module.h>
....@@ -498,7 +485,6 @@
498485 rdev = devm_regulator_register(&client->dev,
499486 &max8660_reg[id], &config);
500487 if (IS_ERR(rdev)) {
501
- ret = PTR_ERR(rdev);
502488 dev_err(&client->dev, "failed to register %s\n",
503489 max8660_reg[id].name);
504490 return PTR_ERR(rdev);