video: tegra: dc: fix section mismatches
Peter De Schrijver [Thu, 19 Jul 2012 12:59:11 +0000 (15:59 +0300)]
tegra_dc_remove_debugfs is also called by tegra_dc_create_debugfs in case of
failure. Hence, it cannot be part of the __devexit section.
tegra_dc_remove calls tegra_dc_remove_sysfs which is in the __devexit section
and doesn't get called elsewhere, hence make tegra_dc_remove also part of the
__devexit section.

Change-Id: I7c7dab12037c642a0314953be442060bec143650
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117058
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

drivers/video/tegra/dc/dc.c

index 0c9c942..0498774 100644 (file)
@@ -599,7 +599,7 @@ static const struct file_operations stats_fops = {
        .release        = single_release,
 };
 
-static void __devexit tegra_dc_remove_debugfs(struct tegra_dc *dc)
+static void tegra_dc_remove_debugfs(struct tegra_dc *dc)
 {
        if (dc->debugdir)
                debugfs_remove_recursive(dc->debugdir);
@@ -2169,7 +2169,7 @@ err_free:
        return ret;
 }
 
-static int tegra_dc_remove(struct nvhost_device *ndev)
+static int __devexit tegra_dc_remove(struct nvhost_device *ndev)
 {
        struct tegra_dc *dc = nvhost_get_drvdata(ndev);