video: tegra: host: fix compilation issues
Varun Wadekar [Mon, 25 Jun 2012 12:58:59 +0000 (17:58 +0530)]
Change-Id: Ia3f4e331c564d93ed8ab7c679b1276bd6af1a98a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

drivers/video/tegra/host/bus.c
drivers/video/tegra/host/chip_support.h
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/gr3d/gr3d.c
drivers/video/tegra/host/msenc/msenc.c
drivers/video/tegra/host/nvhost_cdma.c
drivers/video/tegra/host/t114/t114.c
drivers/video/tegra/host/tsec/tsec.c

index 6298fbf..25960b9 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/pm_runtime.h>
 #include <linux/export.h>
 #include <linux/nvhost.h>
+#include <linux/io.h>
 
 #include "bus.h"
 #include "dev.h"
index a0483d1..7084b4f 100644 (file)
@@ -161,8 +161,6 @@ struct nvhost_chip_support *nvhost_get_chip_ops(void);
 #define cdma_pb_op()           nvhost_get_chip_ops()->push_buffer
 #define mem_op()               (nvhost_get_chip_ops()->mem)
 
-int nvhost_init_t20_support(struct nvhost_master *host);
-int nvhost_init_t30_support(struct nvhost_master *host);
-int nvhost_init_t114_support(struct nvhost_master *host);
+int nvhost_init_chip_support(struct nvhost_master *host);
 
 #endif /* _NVHOST_CHIP_SUPPORT_H_ */
index cf7d3c6..b405160 100644 (file)
@@ -362,8 +362,8 @@ fail:
 
 struct nvhost_device *nvhost_get_device(char *name)
 {
-       if (host_device_op(nvhost).get_nvhost_device)
-               return host_device_op(nvhost).get_nvhost_device(nvhost, name);
+       if (host_device_op().get_nvhost_device)
+               return host_device_op().get_nvhost_device(name);
        pr_warn("%s: nvhost device %s does not exist\n", __func__, name);
        return NULL;
 }
@@ -390,23 +390,6 @@ static int __devinit nvhost_alloc_resources(struct nvhost_master *host)
 {
        int err;
 
-       switch (tegra_get_chipid()) {
-       case TEGRA_CHIPID_TEGRA2:
-               err = nvhost_init_t20_support(host);
-               break;
-
-       case TEGRA_CHIPID_TEGRA3:
-               err = nvhost_init_t30_support(host);
-               break;
-
-       case TEGRA_CHIPID_TEGRA11:
-               err = nvhost_init_t114_support(host);
-               break;
-
-       default:
-               return -ENODEV;
-       }
-
        err = nvhost_init_chip_support(host);
        if (err)
                return err;
index b83265e..c9f1d90 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/slab.h>
 #include <linux/export.h>
+#include <linux/module.h>
 
 #include "t20/t20.h"
 #include "host1x/host1x_channel.h"
index e32d789..8e65a9b 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <linux/slab.h>         /* for kzalloc */
 #include <linux/firmware.h>
+#include <linux/module.h>
 #include <asm/byteorder.h>      /* for parsing ucode image wrt endianness */
 #include <linux/delay.h>       /* for udelay */
 #include <mach/iomap.h>
index e172ea3..8d533b8 100644 (file)
@@ -450,8 +450,8 @@ void nvhost_cdma_push_gather(struct nvhost_cdma *cdma,
 {
        u32 slots_free = cdma->slots_free;
        struct push_buffer *pb = &cdma->push_buffer;
-       BUG_ON(!cdma_pb_op(cdma).push_to);
-       BUG_ON(!cdma_op(cdma).kick);
+       BUG_ON(!cdma_pb_op().push_to);
+       BUG_ON(!cdma_op().kick);
 
        if (handle)
                trace_write_gather(cdma, handle, offset, op1 & 0xffff);
index c255465..7eb2cf7 100644 (file)
@@ -20,6 +20,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
+#include <linux/init.h>
 #include <linux/mutex.h>
 #include <mach/powergate.h>
 #include "dev.h"
index 408e461..5592778 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <linux/slab.h>         /* for kzalloc */
 #include <linux/firmware.h>
+#include <linux/module.h>
 #include <asm/byteorder.h>      /* for parsing ucode image wrt endianness */
 #include <linux/delay.h>       /* for udelay */
 #include <mach/iomap.h>