* sharp zaurus c-3000: fix compile failure without CONFIG_FB_PXA
@ 2005-10-24 17:26 Pavel Machek
2005-10-24 18:16 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2005-10-24 17:26 UTC (permalink / raw)
To: rpurdie, kernel list, Russell King
This fixes compile problem when CONFIG_FB_PXA is not set.
LD .tmp_vmlinux1
arch/arm/mach-pxa/built-in.o(.text+0x1d74): In function
`spitz_get_hsync_len':
: undefined reference to `pxafb_get_hsync_time'
make: *** [.tmp_vmlinux1] Error 1
3.46user 0.46system 5.10 (0m5.106s) elapsed 77.01%CPU
Signed-off-by: Pavel Machek <pavel@suse.cz>
diff --git a/arch/arm/mach-pxa/corgi_lcd.c b/arch/arm/mach-pxa/corgi_lcd.c
--- a/arch/arm/mach-pxa/corgi_lcd.c
+++ b/arch/arm/mach-pxa/corgi_lcd.c
@@ -488,6 +488,7 @@ static int is_pxafb_device(struct device
unsigned long spitz_get_hsync_len(void)
{
+#ifdef CONFIG_FB_PXA
if (!spitz_pxafb_dev) {
spitz_pxafb_dev = bus_find_device(&platform_bus_type, NULL, NULL, is_pxafb_device);
if (!spitz_pxafb_dev)
@@ -496,6 +497,7 @@ unsigned long spitz_get_hsync_len(void)
if (!get_hsync_time)
get_hsync_time = symbol_get(pxafb_get_hsync_time);
if (!get_hsync_time)
+#endif
return 0;
return pxafb_get_hsync_time(spitz_pxafb_dev);
--
Thanks, Sharp!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sharp zaurus c-3000: fix compile failure without CONFIG_FB_PXA
2005-10-24 17:26 sharp zaurus c-3000: fix compile failure without CONFIG_FB_PXA Pavel Machek
@ 2005-10-24 18:16 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2005-10-24 18:16 UTC (permalink / raw)
To: Pavel Machek; +Cc: kernel list, Russell King
On Mon, 2005-10-24 at 19:26 +0200, Pavel Machek wrote:
> This fixes compile problem when CONFIG_FB_PXA is not set.
>
> LD .tmp_vmlinux1
> arch/arm/mach-pxa/built-in.o(.text+0x1d74): In function
> `spitz_get_hsync_len':
> : undefined reference to `pxafb_get_hsync_time'
> make: *** [.tmp_vmlinux1] Error 1
> 3.46user 0.46system 5.10 (0m5.106s) elapsed 77.01%CPU
>
> Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
>
> diff --git a/arch/arm/mach-pxa/corgi_lcd.c b/arch/arm/mach-pxa/corgi_lcd.c
> --- a/arch/arm/mach-pxa/corgi_lcd.c
> +++ b/arch/arm/mach-pxa/corgi_lcd.c
> @@ -488,6 +488,7 @@ static int is_pxafb_device(struct device
>
> unsigned long spitz_get_hsync_len(void)
> {
> +#ifdef CONFIG_FB_PXA
> if (!spitz_pxafb_dev) {
> spitz_pxafb_dev = bus_find_device(&platform_bus_type, NULL, NULL, is_pxafb_device);
> if (!spitz_pxafb_dev)
> @@ -496,6 +497,7 @@ unsigned long spitz_get_hsync_len(void)
> if (!get_hsync_time)
> get_hsync_time = symbol_get(pxafb_get_hsync_time);
> if (!get_hsync_time)
> +#endif
> return 0;
>
> return pxafb_get_hsync_time(spitz_pxafb_dev);
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-24 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24 17:26 sharp zaurus c-3000: fix compile failure without CONFIG_FB_PXA Pavel Machek
2005-10-24 18:16 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®