spi: omap3: Fix multiple definition of 'priv'
authorJagan Teki <jteki@openedev.com>
Tue, 15 Mar 2016 18:26:33 +0000 (23:56 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 18:50:09 +0000 (14:50 -0400)
commit41bccb814285047c7f0da2435c8c3af1c2fd7c5b
tree06493900229b924bf864c3cb5049fb1b9713188a
parent4d339a9e8a758889de5da16b562aff5601bb3d8d
spi: omap3: Fix multiple definition of 'priv'

Global definition of priv seems no-sense to use it
for non-dm case and pass the pointer to functions
which are common to both dm and non-dm.

So, fix this by removing omap3_spi_slave from non-dm
and make visible to omap3_spi_priv for both dm and non-dm.

Cc: Christophe Ricard <christophe-h.ricard@st.com>
Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/omap3_spi.c