]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: ftssp010_spi: Use to_ftssp010_spi() to ensure free correct address
authorAxel Lin <axel.lin@ingics.com>
Mon, 9 Feb 2015 07:11:09 +0000 (15:11 +0800)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Sun, 29 Mar 2015 20:09:20 +0000 (01:39 +0530)
commit81a66446c319225c4a8f0c4c0d9cf4ee10f8c2b9
tree829c56c5913793f6ee1f0d5325a63027f2b6c142
parentaa8306a90e398e5667ccd03ef8512837116bcc51
spi: ftssp010_spi: Use to_ftssp010_spi() to ensure free correct address

Don't assume slave is always the first member of struct ftssp010_spi.
Use to_ftssp010_spi() to ensure free correct address in spi_free_slave().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/ftssp010_spi.c