eeprom: at24: fix retrieving the at24_chip_data structure

Commit feb2f19b1e ("eeprom: at24: move platform data processing into
a separate routine") introduced a bug where we incorrectly retireve the
at24_chip_data structure. Remove the unnecessary ampersand operator.

Fixes: feb2f19b1e ("eeprom: at24: move platform data processing into a separate routine")
Reported-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
此提交包含在:
Bartosz Golaszewski
2018-05-07 12:08:37 +02:00
父節點 67b8d5c708
當前提交 5fa4d14e55

查看文件

@@ -518,7 +518,7 @@ static int at24_get_pdata(struct device *dev, struct at24_platform_data *pdata)
if (of_node && of_match_device(at24_of_match, dev))
cdata = of_device_get_match_data(dev);
else if (id)
cdata = (void *)&id->driver_data;
cdata = (void *)id->driver_data;
else
cdata = acpi_device_get_match_data(dev);