aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 20:19:56 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 20:19:56 -0400
commitadb7ee3746b579a7fa7af7c4ec2c8164bc910ed4 (patch)
treed8a1f9223b3b7384af7f653a519032b69ef60e0c /drivers
parentf46f6b20cb01508f5020142ff91021f8fb39550b (diff)
parent691027b91be99413dc60fab0902b366434555015 (diff)
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/s3c2410.c4
-rw-r--r--drivers/video/pxafb.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/serial/s3c2410.c b/drivers/serial/s3c2410.c
index 2a9f7ade2c9d..5c4678478b1d 100644
--- a/drivers/serial/s3c2410.c
+++ b/drivers/serial/s3c2410.c
@@ -198,7 +198,7 @@ static inline struct s3c24xx_uart_port *to_ourport(struct uart_port *port)
198 198
199/* translate a port to the device name */ 199/* translate a port to the device name */
200 200
201static inline char *s3c24xx_serial_portname(struct uart_port *port) 201static inline const char *s3c24xx_serial_portname(struct uart_port *port)
202{ 202{
203 return to_platform_device(port->dev)->name; 203 return to_platform_device(port->dev)->name;
204} 204}
@@ -903,7 +903,7 @@ static void s3c24xx_serial_release_port(struct uart_port *port)
903 903
904static int s3c24xx_serial_request_port(struct uart_port *port) 904static int s3c24xx_serial_request_port(struct uart_port *port)
905{ 905{
906 char *name = s3c24xx_serial_portname(port); 906 const char *name = s3c24xx_serial_portname(port);
907 return request_mem_region(port->mapbase, MAP_SIZE, name) ? 0 : -EBUSY; 907 return request_mem_region(port->mapbase, MAP_SIZE, name) ? 0 : -EBUSY;
908} 908}
909 909
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 815fbc8317fc..16e37a535d85 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -43,6 +43,7 @@
43#include <asm/io.h> 43#include <asm/io.h>
44#include <asm/irq.h> 44#include <asm/irq.h>
45#include <asm/uaccess.h> 45#include <asm/uaccess.h>
46#include <asm/div64.h>
46#include <asm/arch/pxa-regs.h> 47#include <asm/arch/pxa-regs.h>
47#include <asm/arch/bitfield.h> 48#include <asm/arch/bitfield.h>
48#include <asm/arch/pxafb.h> 49#include <asm/arch/pxafb.h>
@@ -460,7 +461,7 @@ static inline unsigned int get_pcd(unsigned int pixclock)
460 * speeds */ 461 * speeds */
461 462
462 pcd = (unsigned long long)get_lcdclk_frequency_10khz() * pixclock; 463 pcd = (unsigned long long)get_lcdclk_frequency_10khz() * pixclock;
463 pcd /= 100000000 * 2; 464 do_div(pcd, 100000000 * 2);
464 /* no need for this, since we should subtract 1 anyway. they cancel */ 465 /* no need for this, since we should subtract 1 anyway. they cancel */
465 /* pcd += 1; */ /* make up for integer math truncations */ 466 /* pcd += 1; */ /* make up for integer math truncations */
466 return (unsigned int)pcd; 467 return (unsigned int)pcd;