Commit f8888d23 authored by James Bottomley's avatar James Bottomley

sym53c500_cs remove irq,ioport scsi attributes

From: 	Bob Tracy <rct@gherkin.frus.com>
parent 93d7f978
...@@ -85,7 +85,7 @@ static int pc_debug = PCMCIA_DEBUG; ...@@ -85,7 +85,7 @@ static int pc_debug = PCMCIA_DEBUG;
module_param(pc_debug, int, 0); module_param(pc_debug, int, 0);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args) #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
static char *version = static char *version =
"sym53c500_cs.c 0.9a 2004/05/04 (Bob Tracy)"; "sym53c500_cs.c 0.9b 2004/05/10 (Bob Tracy)";
#else #else
#define DEBUG(n, args...) #define DEBUG(n, args...)
#endif #endif
...@@ -667,22 +667,6 @@ SYM53C500_biosparm(struct scsi_device *disk, ...@@ -667,22 +667,6 @@ SYM53C500_biosparm(struct scsi_device *disk,
return 0; return 0;
} }
static ssize_t
SYM53C500_show_irq(struct class_device *cdev, char *buf)
{
struct Scsi_Host *SHp = class_to_shost(cdev);
return snprintf(buf, 4, "%d\n", SHp->irq);
}
static ssize_t
SYM53C500_show_ioport(struct class_device *cdev, char *buf)
{
struct Scsi_Host *SHp = class_to_shost(cdev);
return snprintf(buf, 8, "0x%lx\n", SHp->io_port);
}
static ssize_t static ssize_t
SYM53C500_show_pio(struct class_device *cdev, char *buf) SYM53C500_show_pio(struct class_device *cdev, char *buf)
{ {
...@@ -714,22 +698,6 @@ SYM53C500_store_pio(struct class_device *cdev, const char *buf, size_t count) ...@@ -714,22 +698,6 @@ SYM53C500_store_pio(struct class_device *cdev, const char *buf, size_t count)
* SCSI HBA device attributes we want to * SCSI HBA device attributes we want to
* make available via sysfs. * make available via sysfs.
*/ */
static struct class_device_attribute SYM53C500_irq_attr = {
.attr = {
.name = "irq",
.mode = S_IRUGO,
},
.show = SYM53C500_show_irq,
};
static struct class_device_attribute SYM53C500_ioport_attr = {
.attr = {
.name = "ioport",
.mode = S_IRUGO,
},
.show = SYM53C500_show_ioport,
};
static struct class_device_attribute SYM53C500_pio_attr = { static struct class_device_attribute SYM53C500_pio_attr = {
.attr = { .attr = {
.name = "fast_pio", .name = "fast_pio",
...@@ -740,8 +708,6 @@ static struct class_device_attribute SYM53C500_pio_attr = { ...@@ -740,8 +708,6 @@ static struct class_device_attribute SYM53C500_pio_attr = {
}; };
static struct class_device_attribute *SYM53C500_shost_attrs[] = { static struct class_device_attribute *SYM53C500_shost_attrs[] = {
&SYM53C500_irq_attr,
&SYM53C500_ioport_attr,
&SYM53C500_pio_attr, &SYM53C500_pio_attr,
NULL, NULL,
}; };
......
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