]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/imx: do not make copy of spi_imx_devtype_data
authorShawn Guo <shawn.guo@linaro.org>
Sat, 9 Jul 2011 17:16:35 +0000 (01:16 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 14 Jul 2011 19:19:41 +0000 (13:19 -0600)
commitedd501bbf177ab62f963476c917cbdb0dc7dc862
tree729a221c338ddbe615ece1c55db59ef49b582e38
parent40bfff85ffb5c85ffabcb6d71e64f70799595f89
spi/imx: do not make copy of spi_imx_devtype_data

spi_imx_devtype_data has already been driver private data.  There is
really no need to make a copy in spi_imx_data.  Instead, a reference
pointer works perfectly fine.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-imx.c