aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/raspberrypi-hwmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/raspberrypi-hwmon.c')
-rw-r--r--drivers/hwmon/raspberrypi-hwmon.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/hwmon/raspberrypi-hwmon.c b/drivers/hwmon/raspberrypi-hwmon.c
index be5ba4690895..0d0457245e7d 100644
--- a/drivers/hwmon/raspberrypi-hwmon.c
+++ b/drivers/hwmon/raspberrypi-hwmon.c
@@ -115,7 +115,6 @@ static int rpi_hwmon_probe(struct platform_device *pdev)
115{ 115{
116 struct device *dev = &pdev->dev; 116 struct device *dev = &pdev->dev;
117 struct rpi_hwmon_data *data; 117 struct rpi_hwmon_data *data;
118 int ret;
119 118
120 data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); 119 data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
121 if (!data) 120 if (!data)
@@ -124,11 +123,6 @@ static int rpi_hwmon_probe(struct platform_device *pdev)
124 /* Parent driver assure that firmware is correct */ 123 /* Parent driver assure that firmware is correct */
125 data->fw = dev_get_drvdata(dev->parent); 124 data->fw = dev_get_drvdata(dev->parent);
126 125
127 /* Init throttled */
128 ret = rpi_firmware_property(data->fw, RPI_FIRMWARE_GET_THROTTLED,
129 &data->last_throttled,
130 sizeof(data->last_throttled));
131
132 data->hwmon_dev = devm_hwmon_device_register_with_info(dev, "rpi_volt", 126 data->hwmon_dev = devm_hwmon_device_register_with_info(dev, "rpi_volt",
133 data, 127 data,
134 &rpi_chip_info, 128 &rpi_chip_info,