From 3ce26d2f4b08252edd3ee38a0a6e30a76da9a9fa Mon Sep 17 00:00:00 2001 From: Davide Ciminaghi Date: Fri, 9 Nov 2012 15:19:57 +0100 Subject: mfd: sta2x11-mfd: Do not mind about gpio platform data The gpio platform driver will take care of its platform data, let's not do any checks here. Signed-off-by: Davide Ciminaghi Acked-by: Alessandro Rubini Signed-off-by: Samuel Ortiz --- drivers/mfd/sta2x11-mfd.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'drivers/mfd/sta2x11-mfd.c') diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c index b981dc4a7b3..2c8d65e13a6 100644 --- a/drivers/mfd/sta2x11-mfd.c +++ b/drivers/mfd/sta2x11-mfd.c @@ -553,7 +553,6 @@ static int __devinit sta2x11_mfd_probe(struct pci_dev *pdev, { int err, i; struct sta2x11_mfd_setup_data *setup_data; - struct sta2x11_gpio_pdata *gpio_data; dev_info(&pdev->dev, "%s\n", __func__); @@ -571,16 +570,6 @@ static int __devinit sta2x11_mfd_probe(struct pci_dev *pdev, &mfd_setup_data[STA2X11_MFD0] : &mfd_setup_data[STA2X11_MFD1]; - /* Read gpio config data as pci device's platform data */ - gpio_data = dev_get_platdata(&pdev->dev); - if (!gpio_data) - dev_warn(&pdev->dev, "no gpio configuration\n"); - - dev_dbg(&pdev->dev, "%s, gpio_data = %p (%p)\n", __func__, - gpio_data, &gpio_data); - dev_dbg(&pdev->dev, "%s, pdev = %p (%p)\n", __func__, - pdev, &pdev); - /* platform data is the pci device for all of them */ sta2x11_mfd_setup(pdev, setup_data); -- cgit v1.2.3-70-g09d2