aspeed-pwm-tacho.c (95d002e0a34cb0f238abb39987f9980f325d8332) | aspeed-pwm-tacho.c (389c0ad1d61ec5790174ecb0f01eac13423a18e1) |
---|---|
1/* 2 * Copyright (c) 2016 Google, Inc 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 or later as 6 * published by the Free Software Foundation. 7 */ 8 --- 816 unchanged lines hidden (view full) --- 825 cdev->cooling_levels, 826 num_levels); 827 if (ret) { 828 dev_err(dev, "Property 'cooling-levels' cannot be read.\n"); 829 return ret; 830 } 831 snprintf(cdev->name, MAX_CDEV_NAME_LEN, "%pOFn%d", child, pwm_port); 832 | 1/* 2 * Copyright (c) 2016 Google, Inc 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 or later as 6 * published by the Free Software Foundation. 7 */ 8 --- 816 unchanged lines hidden (view full) --- 825 cdev->cooling_levels, 826 num_levels); 827 if (ret) { 828 dev_err(dev, "Property 'cooling-levels' cannot be read.\n"); 829 return ret; 830 } 831 snprintf(cdev->name, MAX_CDEV_NAME_LEN, "%pOFn%d", child, pwm_port); 832 |
833 cdev->tcdev = thermal_of_cooling_device_register(child, 834 cdev->name, 835 cdev, 836 &aspeed_pwm_cool_ops); | 833 cdev->tcdev = devm_thermal_of_cooling_device_register(dev, child, 834 cdev->name, cdev, &aspeed_pwm_cool_ops); |
837 if (IS_ERR(cdev->tcdev)) 838 return PTR_ERR(cdev->tcdev); 839 840 cdev->priv = priv; 841 cdev->pwm_port = pwm_port; 842 843 priv->cdev[pwm_port] = cdev; 844 --- 136 unchanged lines hidden --- | 835 if (IS_ERR(cdev->tcdev)) 836 return PTR_ERR(cdev->tcdev); 837 838 cdev->priv = priv; 839 cdev->pwm_port = pwm_port; 840 841 priv->cdev[pwm_port] = cdev; 842 --- 136 unchanged lines hidden --- |