summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Rao <manojraj@codeaurora.org>2013-11-21 11:46:06 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:26:29 -0700
commitb1e13cf229cb37ae24b61e54b947b1d8705e236d (patch)
treeace0f87b2bc6bc744fa776067eae510e54bf9c8e
parent511a62d7c2dff114dc05d15a03917ee3f7e54785 (diff)
msm: mdss: mdp: fix incorrect format specifiers
Modify format specifiers in prints and ensure pointer casts are done in an appropriate manner Signed-off-by: Manoj Rao <manojraj@codeaurora.org> Change-Id: I58a61eec971712a889210d9a008e4ab7e2aa090f
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp.c10
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp.h1
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c
index 3d27e14123b7..25fb24cc938a 100644
--- a/drivers/video/fbdev/msm/mdss_mdp.c
+++ b/drivers/video/fbdev/msm/mdss_mdp.c
@@ -1375,9 +1375,9 @@ static int mdss_mdp_probe(struct platform_device *pdev)
rc = -ENOMEM;
goto probe_done;
}
- pr_info("MDP HW Base phy_Address=0x%x virt=0x%x\n",
- (int) res->start,
- (int) mdata->mdss_base);
+ pr_info("MDSS HW Base phy_Address=0x%x virt=0x%x\n",
+ (int) (unsigned long) res->start,
+ (int) (unsigned long) mdata->mdss_base);
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vbif_phys");
if (!res) {
@@ -1394,8 +1394,8 @@ static int mdss_mdp_probe(struct platform_device *pdev)
goto probe_done;
}
pr_info("MDSS VBIF HW Base phy_Address=0x%x virt=0x%x\n",
- (int) res->start,
- (int) mdata->vbif_base);
+ (int) (unsigned long) res->start,
+ (int) (unsigned long) mdata->vbif_base);
res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
if (!res) {
diff --git a/drivers/video/fbdev/msm/mdss_mdp.h b/drivers/video/fbdev/msm/mdss_mdp.h
index 2c0474a01ca1..8e4f293213bb 100644
--- a/drivers/video/fbdev/msm/mdss_mdp.h
+++ b/drivers/video/fbdev/msm/mdss_mdp.h
@@ -19,6 +19,7 @@
#include <linux/msm_mdp.h>
#include <linux/platform_device.h>
#include <linux/notifier.h>
+#include <linux/irqreturn.h>
#include "mdss.h"
#include "mdss_mdp_hwio.h"