git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pxa2xx_spi: dma bugfixes
[pandora-kernel.git]
/
drivers
/
video
/
gxt4500.c
diff --git
a/drivers/video/gxt4500.c
b/drivers/video/gxt4500.c
index
23a6bcc
..
5645577
100644
(file)
--- a/
drivers/video/gxt4500.c
+++ b/
drivers/video/gxt4500.c
@@
-238,7
+238,7
@@
static int calc_pll(int period_ps, struct gxt4500_par *par)
for (pdiv1 = 1; pdiv1 <= 8; ++pdiv1) {
for (pdiv2 = 1; pdiv2 <= pdiv1; ++pdiv2) {
postdiv = pdiv1 * pdiv2;
for (pdiv1 = 1; pdiv1 <= 8; ++pdiv1) {
for (pdiv2 = 1; pdiv2 <= pdiv1; ++pdiv2) {
postdiv = pdiv1 * pdiv2;
- pll_period =
(period_ps + postdiv - 1) / postdiv
;
+ pll_period =
DIV_ROUND_UP(period_ps, postdiv)
;
/* keep pll in range 350..600 MHz */
if (pll_period < 1666 || pll_period > 2857)
continue;
/* keep pll in range 350..600 MHz */
if (pll_period < 1666 || pll_period > 2857)
continue;
@@
-636,7
+636,7
@@
static int __devinit gxt4500_probe(struct pci_dev *pdev,
info = framebuffer_alloc(sizeof(struct gxt4500_par), &pdev->dev);
if (!info) {
info = framebuffer_alloc(sizeof(struct gxt4500_par), &pdev->dev);
if (!info) {
- dev_err(&pdev->dev, "gxt4500: cannot alloc FB info record");
+ dev_err(&pdev->dev, "gxt4500: cannot alloc FB info record
\n
");
goto err_free_fb;
}
par = info->par;
goto err_free_fb;
}
par = info->par;