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: NAxel Lin <axel.lin@ingics.com> Reviewed-by: NJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Showing
想要评论请 注册 或 登录