aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/xilinx_spi.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-04-07 19:23:57 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 13:45:05 -0400
commit3271d382c3ffe61ef3d059ef47e635dbe031030e (patch)
tree2612b0030f0fd85ffe7722cbf195ac061a3eaf76 /drivers/spi/xilinx_spi.c
parent7dc00a0d14992d0083fefccad7839ac837ea55bc (diff)
mfd: Use mfd cell platform_data for timberdale cells platform bits
With the addition of a device platform mfd_cell pointer, MFD drivers can go back to passing platform data back to their sub drivers. This allows for an mfd_cell->mfd_data removal and thus keep the sub drivers MFD agnostic. This is mostly needed for non MFD aware sub drivers. Acked-by: Richard Röjfors <richard.rojfors@pelagicore.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/spi/xilinx_spi.c')
-rw-r--r--drivers/spi/xilinx_spi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
index c69c6f2c2c5c..4d2c75df886c 100644
--- a/drivers/spi/xilinx_spi.c
+++ b/drivers/spi/xilinx_spi.c
@@ -18,7 +18,6 @@
18#include <linux/interrupt.h> 18#include <linux/interrupt.h>
19#include <linux/of.h> 19#include <linux/of.h>
20#include <linux/platform_device.h> 20#include <linux/platform_device.h>
21#include <linux/mfd/core.h>
22#include <linux/spi/spi.h> 21#include <linux/spi/spi.h>
23#include <linux/spi/spi_bitbang.h> 22#include <linux/spi/spi_bitbang.h>
24#include <linux/spi/xilinx_spi.h> 23#include <linux/spi/xilinx_spi.h>
@@ -471,7 +470,7 @@ static int __devinit xilinx_spi_probe(struct platform_device *dev)
471 struct spi_master *master; 470 struct spi_master *master;
472 u8 i; 471 u8 i;
473 472
474 pdata = mfd_get_data(dev); 473 pdata = dev->dev.platform_data;
475 if (pdata) { 474 if (pdata) {
476 num_cs = pdata->num_chipselect; 475 num_cs = pdata->num_chipselect;
477 little_endian = pdata->little_endian; 476 little_endian = pdata->little_endian;