Commit 3232cbcf authored by Russell King's avatar Russell King

[ARM] 2.5.49 Build fixes

- Fix include files in various drivers to kill warnings about
  free_irq() and request_irq()
- Make ARM cpufreq files build
- Convert arthur.c initialisers to C99 style, fixing an init
  bug.
- Allow ARM binaries to execute on Thumb-capable CPUs again.
- Remove arxescsi.h; it is no longer required.
parent cebce9d8
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <linux/personality.h> #include <linux/personality.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/sched.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
...@@ -64,13 +63,13 @@ static void arthur_lcall7(int nr, struct pt_regs *regs) ...@@ -64,13 +63,13 @@ static void arthur_lcall7(int nr, struct pt_regs *regs)
} }
static struct exec_domain arthur_exec_domain = { static struct exec_domain arthur_exec_domain = {
"Arthur", /* name */ .name = "Arthur",
arthur_lcall7, .handler = arthur_lcall7,
PER_RISCOS, PER_RISCOS, .pers_low = PER_RISCOS,
arthur_to_linux_signals, .pers_high = PER_RISCOS,
linux_to_arthur_signals, .signal_map = arthur_to_linux_signals,
THIS_MODULE, .signal_invmap = linux_to_arthur_signals,
NULL /* Nothing after this in the list. */ .module = THIS_MODULE,
}; };
/* /*
...@@ -78,12 +77,12 @@ static struct exec_domain arthur_exec_domain = { ...@@ -78,12 +77,12 @@ static struct exec_domain arthur_exec_domain = {
* processes are using it. * processes are using it.
*/ */
int __init arthur_init(void) static int __init arthur_init(void)
{ {
return register_exec_domain(&arthur_exec_domain); return register_exec_domain(&arthur_exec_domain);
} }
void __exit arthur_exit(void) static void __exit arthur_exit(void)
{ {
unregister_exec_domain(&arthur_exec_domain); unregister_exec_domain(&arthur_exec_domain);
} }
......
...@@ -305,7 +305,7 @@ static struct cpufreq_driver sa1110_driver = { ...@@ -305,7 +305,7 @@ static struct cpufreq_driver sa1110_driver = {
.verify = sa11x0_verify_speed, .verify = sa11x0_verify_speed,
.setpolicy = sa1110_setspeed, .setpolicy = sa1110_setspeed,
.policy = &sa1110_policy, .policy = &sa1110_policy,
.cpu_min_freq[0] = 59000, .cpu_min_freq = { 59000, },
}; };
static int __init sa1110_clk_init(void) static int __init sa1110_clk_init(void)
......
...@@ -21,5 +21,5 @@ extern void sa1110_mb_disable(void); ...@@ -21,5 +21,5 @@ extern void sa1110_mb_disable(void);
struct cpufreq_policy; struct cpufreq_policy;
extern unsigned int sa11x0_freq_to_ppcr(unsigned int khz); extern unsigned int sa11x0_freq_to_ppcr(unsigned int khz);
extern void sa11x0_verify_speed(struct cpufreq_policy *policy); extern int sa11x0_verify_speed(struct cpufreq_policy *policy);
extern unsigned int sa11x0_getspeed(void); extern unsigned int sa11x0_getspeed(void);
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Makefile for the acorn character device drivers. # Makefile for the acorn character device drivers.
# #
# All the objects that export symbols.
obj-arc := keyb_arc.o defkeymap-acorn.o obj-arc := keyb_arc.o defkeymap-acorn.o
obj-$(CONFIG_ARCH_ACORN) += i2c.o pcf8583.o obj-$(CONFIG_ARCH_ACORN) += i2c.o pcf8583.o
......
...@@ -137,10 +137,10 @@ ...@@ -137,10 +137,10 @@
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/blk.h> #include <linux/blk.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/bitops.h> #include <asm/bitops.h>
......
/*
* ARXE SCSI card driver
*
* Copyright (C) 1997-2000 Russell King
*
* Changes to support ARXE 16-bit SCSI card by Stefan Hanske
*/
#ifndef ARXE_SCSI_H
#define ARXE_SCSI_H
#define MANU_ARXE 0x0041
#define PROD_ARXE_SCSI 0x00be
extern int arxescsi_detect (Scsi_Host_Template *);
extern int arxescsi_release (struct Scsi_Host *);
extern const char *arxescsi_info (struct Scsi_Host *);
extern int arxescsi_proc_info (char *buffer, char **start, off_t offset,
int length, int hostno, int inout);
#ifndef NULL
#define NULL ((void *)0)
#endif
#ifndef CAN_QUEUE
/*
* Default queue size
*/
#define CAN_QUEUE 1
#endif
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 1
#endif
#ifndef SCSI_ID
/*
* Default SCSI host ID
*/
#define SCSI_ID 7
#endif
#include <scsi/scsicam.h>
#include "fas216.h"
#define ARXEScsi { \
proc_info: arxescsi_proc_info, \
name: "ARXE SCSI card", \
detect: arxescsi_detect, \
release: arxescsi_release, \
info: arxescsi_info, \
can_queue: CAN_QUEUE, \
this_id: SCSI_ID, \
sg_tablesize: SG_ALL, \
cmd_per_lun: CMD_PER_LUN, \
use_clustering: DISABLE_CLUSTERING, \
command: fas216_command, \
queuecommand: fas216_queue_command, \
eh_host_reset_handler: fas216_eh_host_reset, \
eh_bus_reset_handler: fas216_eh_bus_reset, \
eh_device_reset_handler: fas216_eh_device_reset, \
eh_abort_handler: fas216_eh_abort, \
}
#ifndef HOSTS_C
typedef struct {
FAS216_Info info;
/* other info... */
unsigned int cstatus; /* card status register */
unsigned int dmaarea; /* Pseudo DMA area */
} ARXEScsi_Info;
#define CSTATUS_IRQ (1 << 0)
#define CSTATUS_DRQ (1 << 0)
#endif /* HOSTS_C */
#endif /* ARXE_SCSI_H */
...@@ -23,10 +23,8 @@ ...@@ -23,10 +23,8 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pci.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/dma.h> #include <asm/dma.h>
......
...@@ -29,10 +29,8 @@ ...@@ -29,10 +29,8 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pci.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/init.h> #include <linux/init.h>
......
...@@ -14,10 +14,8 @@ ...@@ -14,10 +14,8 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pci.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/dma.h> #include <asm/dma.h>
......
...@@ -6,13 +6,14 @@ ...@@ -6,13 +6,14 @@
*/ */
#include <linux/config.h> #include <linux/config.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/hardware.h> #include <asm/hardware.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/signal.h>
#include <asm/arch/assabet.h> #include <asm/arch/assabet.h>
#include "sa1100_generic.h" #include "sa1100_generic.h"
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/hardware.h> #include <asm/hardware.h>
......
...@@ -55,8 +55,6 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e ...@@ -55,8 +55,6 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e
unsigned long cardaddr, address; unsigned long cardaddr, address;
int port; int port;
ecard_claim (ec);
info = kmalloc(sizeof(struct serial_card_info), GFP_KERNEL); info = kmalloc(sizeof(struct serial_card_info), GFP_KERNEL);
if (!info) if (!info)
return -ENOMEM; return -ENOMEM;
...@@ -64,6 +62,8 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e ...@@ -64,6 +62,8 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e
memset(info, 0, sizeof(struct serial_card_info)); memset(info, 0, sizeof(struct serial_card_info));
info->num_ports = type->num_ports; info->num_ports = type->num_ports;
ecard_set_drvdata(ec, info);
cardaddr = ecard_address(ec, type->type, type->speed); cardaddr = ecard_address(ec, type->type, type->speed);
for (port = 0; port < info->num_ports; port ++) { for (port = 0; port < info->num_ports; port ++) {
...@@ -98,8 +98,6 @@ static void __devexit serial_card_remove(struct expansion_card *ec) ...@@ -98,8 +98,6 @@ static void __devexit serial_card_remove(struct expansion_card *ec)
} }
kfree(info); kfree(info);
ecard_release(ec);
} }
static struct serial_card_type atomwide_type = { static struct serial_card_type atomwide_type = {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#define ELF_THUMB_OK(x) \ #define ELF_THUMB_OK(x) \
(( (elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 1) == 1) || \ (( (elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 1) == 1) || \
(!(elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 3) == 0)) ((x)->e_entry & 3) == 0)
#define ELF_26BIT_OK(x) \ #define ELF_26BIT_OK(x) \
(( (elf_hwcap & HWCAP_26BIT) && (x)->e_flags & EF_ARM_APCS26) || \ (( (elf_hwcap & HWCAP_26BIT) && (x)->e_flags & EF_ARM_APCS26) || \
......
#ifdef _ASMARM_SUSPEND_H #ifndef _ASMARM_SUSPEND_H
#define _ASMARM_SUSPEND_H #define _ASMARM_SUSPEND_H
#endif #endif
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* *
* Filler routines for DMA buffers * Filler routines for DMA buffers
*/ */
#define __ASSEMBLY__
#include <linux/linkage.h> #include <linux/linkage.h>
#include <asm/assembler.h> #include <asm/assembler.h>
#include <asm/hardware.h> #include <asm/hardware.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment