mfd: db8500 stop passing around platform data
Except for the constant DB8500_PRCMU_FW_VERSION_OFFSET number, nothing is ever passed through the platform data and used in a driver, so we can simply stop passing it around. Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

parent
cf4129ea21
commit
4e657946cb
@@ -1087,7 +1087,6 @@ static int ab8500_probe(struct platform_device *pdev)
|
||||
"Vbus Detect (USB)",
|
||||
"USB ID Detect",
|
||||
"UART Factory Mode Detect"};
|
||||
struct ab8500_platform_data *plat = dev_get_platdata(&pdev->dev);
|
||||
const struct platform_device_id *platid = platform_get_device_id(pdev);
|
||||
enum ab8500_version version = AB8500_VERSION_UNDEFINED;
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
@@ -1219,9 +1218,6 @@ static int ab8500_probe(struct platform_device *pdev)
|
||||
pr_cont("None\n");
|
||||
}
|
||||
|
||||
if (plat && plat->init)
|
||||
plat->init(ab8500);
|
||||
|
||||
if (is_ab9540(ab8500)) {
|
||||
ret = get_register_interruptible(ab8500, AB8500_CHARGER,
|
||||
AB8500_CH_USBCH_STAT1_REG, &value);
|
||||
|
Reference in New Issue
Block a user