|
@@ -191,7 +191,6 @@ static int cros_ec_sensors_probe(struct platform_device *pdev)
|
|
|
{
|
|
|
struct device *dev = &pdev->dev;
|
|
|
struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent);
|
|
|
- struct cros_ec_device *ec_device;
|
|
|
struct iio_dev *indio_dev;
|
|
|
struct cros_ec_sensors_state *state;
|
|
|
struct iio_chan_spec *channel;
|
|
@@ -201,7 +200,6 @@ static int cros_ec_sensors_probe(struct platform_device *pdev)
|
|
|
dev_warn(&pdev->dev, "No CROS EC device found.\n");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
- ec_device = ec_dev->ec_dev;
|
|
|
|
|
|
indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*state));
|
|
|
if (!indio_dev)
|