Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branches 'misc', 'drv_cleanup', 'devm-cleanup' and 'ti-soc' of .git into next

Zhang Rui e7cd7886 5454f211

+14 -63
+2 -2
MAINTAINERS
··· 8056 8056 TI BANDGAP AND THERMAL DRIVER 8057 8057 M: Eduardo Valentin <eduardo.valentin@ti.com> 8058 8058 L: linux-pm@vger.kernel.org 8059 - S: Maintained 8060 - F: drivers/staging/omap-thermal/ 8059 + S: Supported 8060 + F: drivers/thermal/ti-soc-thermal/ 8061 8061 8062 8062 TI FLASH MEDIA INTERFACE DRIVER 8063 8063 M: Alex Dubov <oakad@yahoo.com>
-2
drivers/staging/Kconfig
··· 118 118 119 119 source "drivers/staging/csr/Kconfig" 120 120 121 - source "drivers/staging/ti-soc-thermal/Kconfig" 122 - 123 121 source "drivers/staging/silicom/Kconfig" 124 122 125 123 source "drivers/staging/ced1401/Kconfig"
-1
drivers/staging/Makefile
··· 52 52 obj-$(CONFIG_USB_WPAN_HCD) += ozwpan/ 53 53 obj-$(CONFIG_WIMAX_GDM72XX) += gdm72xx/ 54 54 obj-$(CONFIG_CSR_WIFI) += csr/ 55 - obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/ 56 55 obj-$(CONFIG_NET_VENDOR_SILICOM) += silicom/ 57 56 obj-$(CONFIG_CED1401) += ced1401/ 58 57 obj-$(CONFIG_DRM_IMX) += imx-drm/
drivers/staging/ti-soc-thermal/Kconfig drivers/thermal/ti-soc-thermal/Kconfig
drivers/staging/ti-soc-thermal/Makefile drivers/thermal/ti-soc-thermal/Makefile
drivers/staging/ti-soc-thermal/TODO drivers/thermal/ti-soc-thermal/TODO
drivers/staging/ti-soc-thermal/omap4-thermal-data.c drivers/thermal/ti-soc-thermal/omap4-thermal-data.c
drivers/staging/ti-soc-thermal/omap4xxx-bandgap.h drivers/thermal/ti-soc-thermal/omap4xxx-bandgap.h
drivers/staging/ti-soc-thermal/omap5-thermal-data.c drivers/thermal/ti-soc-thermal/omap5-thermal-data.c
drivers/staging/ti-soc-thermal/omap5xxx-bandgap.h drivers/thermal/ti-soc-thermal/omap5xxx-bandgap.h
drivers/staging/ti-soc-thermal/ti-bandgap.c drivers/thermal/ti-soc-thermal/ti-bandgap.c
drivers/staging/ti-soc-thermal/ti-bandgap.h drivers/thermal/ti-soc-thermal/ti-bandgap.h
drivers/staging/ti-soc-thermal/ti-thermal-common.c drivers/thermal/ti-soc-thermal/ti-thermal-common.c
drivers/staging/ti-soc-thermal/ti-thermal.h drivers/thermal/ti-soc-thermal/ti-thermal.h
drivers/staging/ti-soc-thermal/ti_soc_thermal.txt Documentation/devicetree/bindings/thermal/ti_soc_thermal.txt
+3
drivers/thermal/Kconfig
··· 169 169 enforce idle time which results in more package C-state residency. The 170 170 user interface is exposed via generic thermal framework. 171 171 172 + menu "Texas Instruments thermal drivers" 173 + source "drivers/thermal/ti-soc-thermal/Kconfig" 174 + endmenu 172 175 endif
+1 -1
drivers/thermal/Makefile
··· 23 23 obj-$(CONFIG_ARMADA_THERMAL) += armada_thermal.o 24 24 obj-$(CONFIG_DB8500_CPUFREQ_COOLING) += db8500_cpufreq_cooling.o 25 25 obj-$(CONFIG_INTEL_POWERCLAMP) += intel_powerclamp.o 26 - 26 + obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
-11
drivers/thermal/armada_thermal.c
··· 169 169 return -ENOMEM; 170 170 171 171 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 172 - if (!res) { 173 - dev_err(&pdev->dev, "Failed to get platform resource\n"); 174 - return -ENODEV; 175 - } 176 - 177 172 priv->sensor = devm_ioremap_resource(&pdev->dev, res); 178 173 if (IS_ERR(priv->sensor)) 179 174 return PTR_ERR(priv->sensor); 180 175 181 176 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 182 - if (!res) { 183 - dev_err(&pdev->dev, "Failed to get platform resource\n"); 184 - return -ENODEV; 185 - } 186 - 187 177 priv->control = devm_ioremap_resource(&pdev->dev, res); 188 178 if (IS_ERR(priv->control)) 189 179 return PTR_ERR(priv->control); ··· 200 210 platform_get_drvdata(pdev); 201 211 202 212 thermal_zone_device_unregister(armada_thermal); 203 - platform_set_drvdata(pdev, NULL); 204 213 205 214 return 0; 206 215 }
+1 -11
drivers/thermal/dove_thermal.c
··· 134 134 struct resource *res; 135 135 int ret; 136 136 137 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 138 - if (!res) { 139 - dev_err(&pdev->dev, "Failed to get platform resource\n"); 140 - return -ENODEV; 141 - } 142 - 143 137 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); 144 138 if (!priv) 145 139 return -ENOMEM; 146 140 141 + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 147 142 priv->sensor = devm_ioremap_resource(&pdev->dev, res); 148 143 if (IS_ERR(priv->sensor)) 149 144 return PTR_ERR(priv->sensor); 150 145 151 146 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 152 - if (!res) { 153 - dev_err(&pdev->dev, "Failed to get platform resource\n"); 154 - return -ENODEV; 155 - } 156 147 priv->control = devm_ioremap_resource(&pdev->dev, res); 157 148 if (IS_ERR(priv->control)) 158 149 return PTR_ERR(priv->control); ··· 173 182 platform_get_drvdata(pdev); 174 183 175 184 thermal_zone_device_unregister(dove_thermal); 176 - platform_set_drvdata(pdev, NULL); 177 185 178 186 return 0; 179 187 }
-8
drivers/thermal/exynos_thermal.c
··· 925 925 INIT_WORK(&data->irq_work, exynos_tmu_work); 926 926 927 927 data->mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 928 - if (!data->mem) { 929 - dev_err(&pdev->dev, "Failed to get platform resource\n"); 930 - return -ENOENT; 931 - } 932 - 933 928 data->base = devm_ioremap_resource(&pdev->dev, data->mem); 934 929 if (IS_ERR(data->base)) 935 930 return PTR_ERR(data->base); ··· 996 1001 997 1002 return 0; 998 1003 err_clk: 999 - platform_set_drvdata(pdev, NULL); 1000 1004 clk_unprepare(data->clk); 1001 1005 return ret; 1002 1006 } ··· 1009 1015 exynos_unregister_thermal(); 1010 1016 1011 1017 clk_unprepare(data->clk); 1012 - 1013 - platform_set_drvdata(pdev, NULL); 1014 1018 1015 1019 return 0; 1016 1020 }
+1 -7
drivers/thermal/kirkwood_thermal.c
··· 75 75 struct kirkwood_thermal_priv *priv; 76 76 struct resource *res; 77 77 78 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 79 - if (!res) { 80 - dev_err(&pdev->dev, "Failed to get platform resource\n"); 81 - return -ENODEV; 82 - } 83 - 84 78 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); 85 79 if (!priv) 86 80 return -ENOMEM; 87 81 82 + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 88 83 priv->sensor = devm_ioremap_resource(&pdev->dev, res); 89 84 if (IS_ERR(priv->sensor)) 90 85 return PTR_ERR(priv->sensor); ··· 103 108 platform_get_drvdata(pdev); 104 109 105 110 thermal_zone_device_unregister(kirkwood_thermal); 106 - platform_set_drvdata(pdev, NULL); 107 111 108 112 return 0; 109 113 }
+1 -7
drivers/thermal/rcar_thermal.c
··· 389 389 * platform has IRQ support. 390 390 * Then, drier use common register 391 391 */ 392 - res = platform_get_resource(pdev, IORESOURCE_MEM, mres++); 393 - if (!res) { 394 - dev_err(dev, "Could not get platform resource\n"); 395 - return -ENODEV; 396 - } 397 392 398 393 ret = devm_request_irq(dev, irq->start, rcar_thermal_irq, 0, 399 394 dev_name(dev), common); ··· 400 405 /* 401 406 * rcar_has_irq_support() will be enabled 402 407 */ 408 + res = platform_get_resource(pdev, IORESOURCE_MEM, mres++); 403 409 common->base = devm_ioremap_resource(dev, res); 404 410 if (IS_ERR(common->base)) 405 411 return PTR_ERR(common->base); ··· 482 486 if (rcar_has_irq_support(priv)) 483 487 rcar_thermal_irq_disable(priv); 484 488 } 485 - 486 - platform_set_drvdata(pdev, NULL); 487 489 488 490 pm_runtime_put_sync(dev); 489 491 pm_runtime_disable(dev);
+5 -13
drivers/thermal/spear_thermal.c
··· 104 104 struct thermal_zone_device *spear_thermal = NULL; 105 105 struct spear_thermal_dev *stdev; 106 106 struct device_node *np = pdev->dev.of_node; 107 - struct resource *stres = platform_get_resource(pdev, IORESOURCE_MEM, 0); 107 + struct resource *res; 108 108 int ret = 0, val; 109 109 110 110 if (!np || !of_property_read_u32(np, "st,thermal-flags", &val)) { 111 111 dev_err(&pdev->dev, "Failed: DT Pdata not passed\n"); 112 112 return -EINVAL; 113 - } 114 - 115 - if (!stres) { 116 - dev_err(&pdev->dev, "memory resource missing\n"); 117 - return -ENODEV; 118 113 } 119 114 120 115 stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL); ··· 119 124 } 120 125 121 126 /* Enable thermal sensor */ 122 - stdev->thermal_base = devm_ioremap(&pdev->dev, stres->start, 123 - resource_size(stres)); 124 - if (!stdev->thermal_base) { 125 - dev_err(&pdev->dev, "ioremap failed\n"); 126 - return -ENOMEM; 127 - } 127 + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 128 + stdev->thermal_base = devm_ioremap_resource(&pdev->dev, res); 129 + if (IS_ERR(stdev->thermal_base)) 130 + return PTR_ERR(stdev->thermal_base); 128 131 129 132 stdev->clk = devm_clk_get(&pdev->dev, NULL); 130 133 if (IS_ERR(stdev->clk)) { ··· 167 174 struct spear_thermal_dev *stdev = spear_thermal->devdata; 168 175 169 176 thermal_zone_device_unregister(spear_thermal); 170 - platform_set_drvdata(pdev, NULL); 171 177 172 178 /* Disable SPEAr Thermal Sensor */ 173 179 actual_mask = readl_relaxed(stdev->thermal_base);