Skip to content

Commit e0558eb

Browse files
Haibo Chenbroonie
authored andcommitted
spi: spi-nxp-fspi: remove the unchecked return value for nxp_fspi_clk_disable_unprep
For nxp_fspi_clk_disable_unprep(), no caller check the return value, so remove the unchecked return value. Signed-off-by: Haibo Chen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 93be516 commit e0558eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/spi/spi-nxp-fspi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,15 +634,15 @@ static int nxp_fspi_clk_prep_enable(struct nxp_fspi *f)
634634
return 0;
635635
}
636636

637-
static int nxp_fspi_clk_disable_unprep(struct nxp_fspi *f)
637+
static void nxp_fspi_clk_disable_unprep(struct nxp_fspi *f)
638638
{
639639
if (is_acpi_node(dev_fwnode(f->dev)))
640-
return 0;
640+
return;
641641

642642
clk_disable_unprepare(f->clk);
643643
clk_disable_unprepare(f->clk_en);
644644

645-
return 0;
645+
return;
646646
}
647647

648648
static void nxp_fspi_dll_calibration(struct nxp_fspi *f)

0 commit comments

Comments
 (0)