Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54038
b: refs/heads/master
c: ef08574
h: refs/heads/master
v: v3
  • Loading branch information
Graeme Gregory authored and Russell King committed Apr 21, 2007
1 parent c8d48dd commit 01903a8
Show file tree
Hide file tree
Showing 9 changed files with 117 additions and 812 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5559bca8e66f968192a5416d953c88cc3389cb22
refs/heads/master: ef08574729bcf65bbd1f0c9ad9b9baa9bbd7a830
31 changes: 14 additions & 17 deletions trunk/arch/arm/kernel/ecard.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <linux/device.h>
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/kthread.h>

#include <asm/dma.h>
#include <asm/ecard.h>
Expand All @@ -51,8 +50,6 @@
#include <asm/mach/irq.h>
#include <asm/tlbflush.h>

#include "ecard.h"

#ifndef CONFIG_ARCH_RPC
#define HAVE_EXPMASK
#endif
Expand Down Expand Up @@ -126,7 +123,7 @@ static void ecard_task_reset(struct ecard_request *req)

res = ec->slot_no == 8
? &ec->resource[ECARD_RES_MEMC]
: ec->easi
: ec->type == ECARD_EASI
? &ec->resource[ECARD_RES_EASI]
: &ec->resource[ECARD_RES_IOCSYNC];

Expand Down Expand Up @@ -181,7 +178,7 @@ static void ecard_task_readbytes(struct ecard_request *req)
index += 1;
}
} else {
unsigned long base = (ec->easi
unsigned long base = (ec->type == ECARD_EASI
? &ec->resource[ECARD_RES_EASI]
: &ec->resource[ECARD_RES_IOCSYNC])->start;
void __iomem *pbase = (void __iomem *)base;
Expand Down Expand Up @@ -266,6 +263,8 @@ static int ecard_init_mm(void)
static int
ecard_task(void * unused)
{
daemonize("kecardd");

/*
* Allocate a mm. We're not a lazy-TLB kernel task since we need
* to set page table entries where the user space would be. Note
Expand Down Expand Up @@ -728,7 +727,7 @@ static int ecard_prints(char *buffer, ecard_t *ec)
char *start = buffer;

buffer += sprintf(buffer, " %d: %s ", ec->slot_no,
ec->easi ? "EASI" : " ");
ec->type == ECARD_EASI ? "EASI" : " ");

if (ec->cid.id == 0) {
struct in_chunk_dir incd;
Expand Down Expand Up @@ -815,7 +814,7 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot)
}

ec->slot_no = slot;
ec->easi = type == ECARD_EASI;
ec->type = type;
ec->irq = NO_IRQ;
ec->fiq = NO_IRQ;
ec->dma = NO_DMA;
Expand All @@ -826,7 +825,6 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot)
ec->dev.bus = &ecard_bus_type;
ec->dev.dma_mask = &ec->dma_mask;
ec->dma_mask = (u64)0xffffffff;
ec->dev.coherent_dma_mask = ec->dma_mask;

if (slot < 4) {
ec_set_resource(ec, ECARD_RES_MEMC,
Expand Down Expand Up @@ -909,7 +907,7 @@ static ssize_t ecard_show_device(struct device *dev, struct device_attribute *at
static ssize_t ecard_show_type(struct device *dev, struct device_attribute *attr, char *buf)
{
struct expansion_card *ec = ECARD_DEV(dev);
return sprintf(buf, "%s\n", ec->easi ? "EASI" : "IOC");
return sprintf(buf, "%s\n", ec->type == ECARD_EASI ? "EASI" : "IOC");
}

static struct device_attribute ecard_dev_attrs[] = {
Expand Down Expand Up @@ -1060,14 +1058,13 @@ ecard_probe(int slot, card_type_t type)
*/
static int __init ecard_init(void)
{
struct task_struct *task;
int slot, irqhw;

task = kthread_run(ecard_task, NULL, "kecardd");
if (IS_ERR(task)) {
printk(KERN_ERR "Ecard: unable to create kernel thread: %ld\n",
PTR_ERR(task));
return PTR_ERR(task);
int slot, irqhw, ret;

ret = kernel_thread(ecard_task, NULL, CLONE_KERNEL);
if (ret < 0) {
printk(KERN_ERR "Ecard: unable to create kernel thread: %d\n",
ret);
return ret;
}

printk("Probing expansion cards\n");
Expand Down
56 changes: 0 additions & 56 deletions trunk/arch/arm/kernel/ecard.h

This file was deleted.

35 changes: 0 additions & 35 deletions trunk/arch/arm/mach-rpc/riscpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/sched.h>
#include <linux/device.h>
#include <linux/serial_8250.h>
#include <linux/pata_platform.h>

#include <asm/elf.h>
#include <asm/io.h>
Expand Down Expand Up @@ -160,45 +159,11 @@ static struct platform_device serial_device = {
},
};

static struct pata_platform_info pata_platform_data = {
.ioport_shift = 2,
};

static struct resource pata_resources[] = {
[0] = {
.start = 0x030107c0,
.end = 0x030107df,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 0x03010fd8,
.end = 0x03010fdb,
.flags = IORESOURCE_MEM,
},
[2] = {
.start = IRQ_HARDDISK,
.end = IRQ_HARDDISK,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device pata_device = {
.name = "pata_platform",
.id = -1,
.num_resources = ARRAY_SIZE(pata_resources),
.resource = pata_resources,
.dev = {
.platform_data = &pata_platform_data,
.coherent_dma_mask = ~0, /* grumble */
},
};

static struct platform_device *devs[] __initdata = {
&iomd_device,
&kbd_device,
&serial_device,
&acornfb_device,
&pata_device,
};

static int __init rpc_init(void)
Expand Down
10 changes: 1 addition & 9 deletions trunk/drivers/ata/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -545,21 +545,13 @@ config PATA_WINBOND_VLB

config PATA_PLATFORM
tristate "Generic platform device PATA support"
depends on EMBEDDED || ARCH_RPC
depends on EMBEDDED
help
This option enables support for generic directly connected ATA
devices commonly found on embedded systems.

If unsure, say N.

config PATA_ICSIDE
tristate "Acorn ICS PATA support"
depends on ARM && ARCH_ACORN
help
On Acorn systems, say Y here if you wish to use the ICS PATA
interface card. This is not required for ICS partition support.
If you are unsure, say N to this.

config PATA_IXP4XX_CF
tristate "IXP4XX Compact Flash support"
depends on ARCH_IXP4XX
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/ata/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ obj-$(CONFIG_PATA_TRIFLEX) += pata_triflex.o
obj-$(CONFIG_PATA_IXP4XX_CF) += pata_ixp4xx_cf.o
obj-$(CONFIG_PATA_SCC) += pata_scc.o
obj-$(CONFIG_PATA_PLATFORM) += pata_platform.o
obj-$(CONFIG_PATA_ICSIDE) += pata_icside.o
# Should be last but one libata driver
obj-$(CONFIG_ATA_GENERIC) += ata_generic.o
# Should be last libata driver
Expand Down
Loading

0 comments on commit 01903a8

Please sign in to comment.