From 4cb4b43664c32a7b0f80f1e160a8e6d6e7370965 Mon Sep 17 00:00:00 2001 From: Federico Vaga <federico.vaga@cern.ch> Date: Tue, 1 Jul 2014 13:43:32 +0200 Subject: [PATCH] kernel: rename function cleanup -> exit Use the specular name: we used init, we should use exit Signed-off-by: Federico Vaga <federico.vaga@cern.ch> --- kernel/spec-vic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/spec-vic.c b/kernel/spec-vic.c index 71ad981..489df79 100644 --- a/kernel/spec-vic.c +++ b/kernel/spec-vic.c @@ -99,7 +99,7 @@ static int spec_vic_init(struct spec_dev *spec, struct fmc_device *fmc) return 0; } -static void spec_vic_cleanup(struct spec_dev *spec) +static void spec_vic_exit(struct spec_dev *spec) { if (!spec->vic) return; @@ -108,7 +108,6 @@ static void spec_vic_cleanup(struct spec_dev *spec) vic_writel(spec->vic, 0xffffffff, VIC_REG_IDR); vic_writel(spec->vic, 0, VIC_REG_CTL); kfree(spec->vic); - spec->vic = NULL; } irqreturn_t spec_vic_irq_dispatch(struct spec_dev *spec) @@ -208,7 +207,7 @@ int spec_vic_irq_free(struct spec_dev *spec, unsigned long id) /* Clean up the VIC if there are no more handlers */ if (!vic_handler_count(spec->vic)) { - spec_vic_cleanup(spec); + spec_vic_exit(spec); spec->vic = NULL; } -- GitLab