|
@@ -22,9 +22,6 @@
|
|
#include <linux/wait.h>
|
|
#include <linux/wait.h>
|
|
#include <linux/clk.h>
|
|
#include <linux/clk.h>
|
|
#include <linux/file.h>
|
|
#include <linux/file.h>
|
|
-#ifdef CONFIG_ANDROID_PMEM
|
|
|
|
-#include <linux/android_pmem.h>
|
|
|
|
-#endif
|
|
|
|
#include <linux/major.h>
|
|
#include <linux/major.h>
|
|
|
|
|
|
#include <mach/msm_iomap.h>
|
|
#include <mach/msm_iomap.h>
|
|
@@ -262,11 +259,6 @@ int get_img(struct mdp_img *img, struct fb_info *info,
|
|
struct file *file;
|
|
struct file *file;
|
|
unsigned long vstart;
|
|
unsigned long vstart;
|
|
|
|
|
|
-#ifdef CONFIG_ANDROID_PMEM
|
|
|
|
- if (!get_pmem_file(img->memory_id, start, &vstart, len, filep))
|
|
|
|
- return 0;
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
file = fget_light(img->memory_id, &put_needed);
|
|
file = fget_light(img->memory_id, &put_needed);
|
|
if (file == NULL)
|
|
if (file == NULL)
|
|
return -1;
|
|
return -1;
|
|
@@ -283,12 +275,6 @@ int get_img(struct mdp_img *img, struct fb_info *info,
|
|
|
|
|
|
void put_img(struct file *src_file, struct file *dst_file)
|
|
void put_img(struct file *src_file, struct file *dst_file)
|
|
{
|
|
{
|
|
-#ifdef CONFIG_ANDROID_PMEM
|
|
|
|
- if (src_file)
|
|
|
|
- put_pmem_file(src_file);
|
|
|
|
- if (dst_file)
|
|
|
|
- put_pmem_file(dst_file);
|
|
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
|
|
|
|
int mdp_blit(struct mdp_device *mdp_dev, struct fb_info *fb,
|
|
int mdp_blit(struct mdp_device *mdp_dev, struct fb_info *fb,
|
|
@@ -320,9 +306,6 @@ int mdp_blit(struct mdp_device *mdp_dev, struct fb_info *fb,
|
|
if (unlikely(get_img(&req->dst, fb, &dst_start, &dst_len, &dst_file))) {
|
|
if (unlikely(get_img(&req->dst, fb, &dst_start, &dst_len, &dst_file))) {
|
|
printk(KERN_ERR "mpd_ppp: could not retrieve dst image from "
|
|
printk(KERN_ERR "mpd_ppp: could not retrieve dst image from "
|
|
"memory\n");
|
|
"memory\n");
|
|
-#ifdef CONFIG_ANDROID_PMEM
|
|
|
|
- put_pmem_file(src_file);
|
|
|
|
-#endif
|
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
mutex_lock(&mdp_mutex);
|
|
mutex_lock(&mdp_mutex);
|
|
@@ -499,7 +482,6 @@ int mdp_probe(struct platform_device *pdev)
|
|
/* register mdp device */
|
|
/* register mdp device */
|
|
mdp->mdp_dev.dev.parent = &pdev->dev;
|
|
mdp->mdp_dev.dev.parent = &pdev->dev;
|
|
mdp->mdp_dev.dev.class = mdp_class;
|
|
mdp->mdp_dev.dev.class = mdp_class;
|
|
- snprintf(mdp->mdp_dev.dev.bus_id, BUS_ID_SIZE, "mdp%d", pdev->id);
|
|
|
|
|
|
|
|
/* if you can remove the platform device you'd have to implement
|
|
/* if you can remove the platform device you'd have to implement
|
|
* this:
|
|
* this:
|