]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
drm/omap: Remove cpu_is_omapXXXX usage in DMM
authorAndy Gross <andy.gross@ti.com>
Wed, 17 Oct 2012 05:30:03 +0000 (00:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 22:55:19 +0000 (15:55 -0700)
Removed usage of the cpu_is_omapXXXX in the DMM driver.  This is no
longer necessary as we can key off of the omap_dmm pointer that is
only non-NULL if the device has been probed successfully.

Signed-off-by: Andy Gross <andy.gross@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_dmm_tiler.c
drivers/staging/omapdrm/omap_dmm_tiler.h
drivers/staging/omapdrm/omap_gem.c

index 7d3b7d441c6e8a5445a2a243acf9f72ebdcecf93..4d138df369b305c065a03803c86fa1dfbe6a4902 100644 (file)
@@ -522,7 +522,7 @@ size_t tiler_vsize(enum tiler_fmt fmt, uint16_t w, uint16_t h)
        return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h;
 }
 
-bool dmm_is_initialized(void)
+bool dmm_is_available(void)
 {
        return omap_dmm ? true : false;
 }
index 740911df5fc3d9842de401aec53d6dae1482bf09..c0271a2ac877d458e540230816992d5a81ef3d2d 100644 (file)
@@ -107,7 +107,7 @@ uint32_t tiler_stride(enum tiler_fmt fmt, uint32_t orient);
 size_t tiler_size(enum tiler_fmt fmt, uint16_t w, uint16_t h);
 size_t tiler_vsize(enum tiler_fmt fmt, uint16_t w, uint16_t h);
 void tiler_align(enum tiler_fmt fmt, uint16_t *w, uint16_t *h);
-bool dmm_is_initialized(void);
+bool dmm_is_available(void);
 
 extern struct platform_driver omap_dmm_driver;
 
@@ -139,9 +139,4 @@ static inline bool validfmt(enum tiler_fmt fmt)
        }
 }
 
-static inline int dmm_is_available(void)
-{
-       return cpu_is_omap44xx();
-}
-
 #endif
index 3434e6ec01426677ff576de960ffbf65440af8d6..0e4a6b70663d6f5d582ebc0a4c0ea9f425743db4 100644 (file)
@@ -1435,7 +1435,7 @@ void omap_gem_init(struct drm_device *dev)
        };
        int i, j;
 
-       if (!dmm_is_initialized()) {
+       if (!dmm_is_available()) {
                /* DMM only supported on OMAP4 and later, so this isn't fatal */
                dev_warn(dev->dev, "DMM not available, disable DMM support\n");
                return;