struct scatterlist *sg;
u32 total = 0;
- *nents = 0;
-
for (sg = sgl; sg; sg = sg_next(sg)) {
unsigned int len = sg_dma_len(sg);
tx_sgl = xfer->tx_sg.sgl;
do {
- u32 rx_nents, tx_nents;
+ u32 rx_nents = 0, tx_nents = 0;
if (rx_sgl)
qup->n_words = spi_qup_sgl_get_nents_len(rx_sgl,
else if (!ret)
master->can_dma = spi_qup_can_dma;
- controller->qup_v1 = (int)of_device_get_match_data(dev);
+ controller->qup_v1 = (uintptr_t)of_device_get_match_data(dev);
if (!controller->qup_v1)
master->set_cs = spi_qup_set_cs;