mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
soc: fsl: cpm1: qmc: Fix blank line and spaces
[ Upstream commit f06ab938bcddcb3c3a0b458b03a827c701919c9e ] checkpatch.pl raises the following issues CHECK: Please don't use multiple blank lines CHECK: Alignment should match open parenthesis Fix them. Signed-off-by: Herve Codina <herve.codina@bootlin.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Link: https://lore.kernel.org/r/20240808071132.149251-20-herve.codina@bootlin.com Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Stable-dep-of: cb3daa51db81 ("soc: fsl: cpm1: qmc: Set the ret error code on platform_get_irq() failure") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
850cee3472
commit
7ca6b9e73d
@@ -253,7 +253,6 @@ static inline void qmc_setbits32(void __iomem *addr, u32 set)
|
||||
qmc_write32(addr, qmc_read32(addr) | set);
|
||||
}
|
||||
|
||||
|
||||
int qmc_chan_get_info(struct qmc_chan *chan, struct qmc_chan_info *info)
|
||||
{
|
||||
struct tsa_serial_info tsa_info;
|
||||
@@ -1093,7 +1092,7 @@ static int qmc_setup_chan(struct qmc *qmc, struct qmc_chan *chan)
|
||||
qmc_write32(chan->s_param + QMC_SPE_ZDSTATE, 0x00000080);
|
||||
qmc_write16(chan->s_param + QMC_SPE_MFLR, 60);
|
||||
qmc_write16(chan->s_param + QMC_SPE_CHAMR,
|
||||
QMC_SPE_CHAMR_MODE_HDLC | QMC_SPE_CHAMR_HDLC_IDLM);
|
||||
QMC_SPE_CHAMR_MODE_HDLC | QMC_SPE_CHAMR_HDLC_IDLM);
|
||||
}
|
||||
|
||||
/* Do not enable interrupts now. They will be enabled later */
|
||||
@@ -1286,7 +1285,6 @@ static int qmc_probe(struct platform_device *pdev)
|
||||
if (IS_ERR(qmc->scc_regs))
|
||||
return PTR_ERR(qmc->scc_regs);
|
||||
|
||||
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "scc_pram");
|
||||
if (!res)
|
||||
return -EINVAL;
|
||||
@@ -1332,7 +1330,7 @@ static int qmc_probe(struct platform_device *pdev)
|
||||
*/
|
||||
qmc->bd_size = (nb_chans * (QMC_NB_TXBDS + QMC_NB_RXBDS)) * sizeof(cbd_t);
|
||||
qmc->bd_table = dmam_alloc_coherent(qmc->dev, qmc->bd_size,
|
||||
&qmc->bd_dma_addr, GFP_KERNEL);
|
||||
&qmc->bd_dma_addr, GFP_KERNEL);
|
||||
if (!qmc->bd_table) {
|
||||
dev_err(qmc->dev, "Failed to allocate bd table\n");
|
||||
ret = -ENOMEM;
|
||||
@@ -1345,7 +1343,7 @@ static int qmc_probe(struct platform_device *pdev)
|
||||
/* Allocate the interrupt table */
|
||||
qmc->int_size = QMC_NB_INTS * sizeof(u16);
|
||||
qmc->int_table = dmam_alloc_coherent(qmc->dev, qmc->int_size,
|
||||
&qmc->int_dma_addr, GFP_KERNEL);
|
||||
&qmc->int_dma_addr, GFP_KERNEL);
|
||||
if (!qmc->int_table) {
|
||||
dev_err(qmc->dev, "Failed to allocate interrupt table\n");
|
||||
ret = -ENOMEM;
|
||||
@@ -1393,7 +1391,7 @@ static int qmc_probe(struct platform_device *pdev)
|
||||
|
||||
/* Enable interrupts */
|
||||
qmc_write16(qmc->scc_regs + SCC_SCCM,
|
||||
SCC_SCCE_IQOV | SCC_SCCE_GINT | SCC_SCCE_GUN | SCC_SCCE_GOV);
|
||||
SCC_SCCE_IQOV | SCC_SCCE_GINT | SCC_SCCE_GUN | SCC_SCCE_GOV);
|
||||
|
||||
ret = qmc_finalize_chans(qmc);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user