.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2007 Ben Dooks |
---|
3 | 4 | * Copyright (c) 2008 Simtec Electronics |
---|
.. | .. |
---|
6 | 7 | * Copyright (c) 2017 Samsung Electronics Co., Ltd. |
---|
7 | 8 | * |
---|
8 | 9 | * PWM driver for Samsung SoCs |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License as published by |
---|
12 | | - * the Free Software Foundation; either version 2 of the License. |
---|
13 | 10 | */ |
---|
14 | 11 | |
---|
15 | 12 | #include <linux/bitops.h> |
---|
.. | .. |
---|
226 | 223 | return -EINVAL; |
---|
227 | 224 | } |
---|
228 | 225 | |
---|
229 | | - our_chan = devm_kzalloc(chip->dev, sizeof(*our_chan), GFP_KERNEL); |
---|
| 226 | + our_chan = kzalloc(sizeof(*our_chan), GFP_KERNEL); |
---|
230 | 227 | if (!our_chan) |
---|
231 | 228 | return -ENOMEM; |
---|
232 | 229 | |
---|
.. | .. |
---|
237 | 234 | |
---|
238 | 235 | static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) |
---|
239 | 236 | { |
---|
240 | | - devm_kfree(chip->dev, pwm_get_chip_data(pwm)); |
---|
| 237 | + kfree(pwm_get_chip_data(pwm)); |
---|
241 | 238 | } |
---|
242 | 239 | |
---|
243 | 240 | static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) |
---|