disp: msm: updates to msm_drv
Commit c368ec194dd0 ("drm/client: Rename _force to _locked"), commit 4bdc0d676a64 ("remove ioremap_nocache and devm_ioremap_nocache") and commit 595abbaff5db ("y2038: remove ktime to/from timespec/timeval conversion") renames modeset_commit_force, renames devm_ioremap_nocache and removes the usage of timespec. This changes updates the msm driver with the relevant changes. Change-Id: Ib7372b8b4e51cdf75771e5069be189be76c32ed4 Signed-off-by: Samantha Tran <samtran@codeaurora.org> Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
Šī revīzija ir iekļauta:

revīziju iesūtīja
orion brody

vecāks
0c08cb1fb5
revīzija
640ada10b5
@@ -266,7 +266,7 @@ void __iomem *msm_ioremap(struct platform_device *pdev, const char *name,
|
||||
|
||||
size = resource_size(res);
|
||||
|
||||
ptr = devm_ioremap_nocache(&pdev->dev, res->start, size);
|
||||
ptr = devm_ioremap(&pdev->dev, res->start, size);
|
||||
if (!ptr) {
|
||||
dev_err(&pdev->dev, "failed to ioremap: %s\n", name);
|
||||
return ERR_PTR(-ENOMEM);
|
||||
@@ -1059,7 +1059,7 @@ static void msm_lastclose(struct drm_device *dev)
|
||||
if (rc)
|
||||
DRM_ERROR("restore FBDEV mode failed: %d\n", rc);
|
||||
} else if (kms && kms->client.dev) {
|
||||
rc = drm_client_modeset_commit_force(&kms->client);
|
||||
rc = drm_client_modeset_commit_locked(&kms->client);
|
||||
if (rc)
|
||||
DRM_ERROR("client modeset commit failed: %d\n", rc);
|
||||
}
|
||||
|
@@ -1363,8 +1363,7 @@ static inline unsigned long timeout_to_jiffies(const ktime_t *timeout)
|
||||
remaining_jiffies = 0;
|
||||
} else {
|
||||
ktime_t rem = ktime_sub(*timeout, now);
|
||||
struct timespec ts = ktime_to_timespec(rem);
|
||||
remaining_jiffies = timespec_to_jiffies(&ts);
|
||||
remaining_jiffies = nsecs_to_jiffies(ktime_to_ns(rem));
|
||||
}
|
||||
|
||||
return remaining_jiffies;
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user