aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-27 07:18:02 -0400
committerDavid S. Miller <davem@davemloft.net>2008-08-29 05:15:18 -0400
commitc6e5f661eee0ff62e7fdb263cfeee73c20dd6e99 (patch)
tree2fa811c8f3687b2c3dea092fd6486be478475ff4
parent9b9644c6d91e9fd8edecba3ae57a35285cfce9db (diff)
sparc: Kill OBP property members of sbus_dev and sbus_bus
Unused. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc/include/asm/sbus_32.h6
-rw-r--r--arch/sparc/include/asm/sbus_64.h7
-rw-r--r--drivers/sbus/sbus.c18
3 files changed, 1 insertions, 30 deletions
diff --git a/arch/sparc/include/asm/sbus_32.h b/arch/sparc/include/asm/sbus_32.h
index fdaf1a74492a..99f79e4a7094 100644
--- a/arch/sparc/include/asm/sbus_32.h
+++ b/arch/sparc/include/asm/sbus_32.h
@@ -30,9 +30,6 @@ struct sbus_dev {
30 struct sbus_dev *next; 30 struct sbus_dev *next;
31 struct sbus_dev *child; 31 struct sbus_dev *child;
32 struct sbus_dev *parent; 32 struct sbus_dev *parent;
33 int prom_node;
34 char prom_name[64];
35 int slot;
36}; 33};
37#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev) 34#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev)
38 35
@@ -41,9 +38,6 @@ struct sbus_bus {
41 struct of_device ofdev; 38 struct of_device ofdev;
42 struct sbus_dev *devices; /* Link to devices on this SBus */ 39 struct sbus_dev *devices; /* Link to devices on this SBus */
43 struct sbus_bus *next; /* next SBus, if more than one SBus */ 40 struct sbus_bus *next; /* next SBus, if more than one SBus */
44 int prom_node; /* PROM device tree node for this SBus */
45 char prom_name[64]; /* Usually "sbus" or "sbi" */
46 int clock_freq;
47}; 41};
48#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev) 42#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
49 43
diff --git a/arch/sparc/include/asm/sbus_64.h b/arch/sparc/include/asm/sbus_64.h
index 6b3b055fca71..b7b76945247f 100644
--- a/arch/sparc/include/asm/sbus_64.h
+++ b/arch/sparc/include/asm/sbus_64.h
@@ -30,9 +30,6 @@ struct sbus_dev {
30 struct sbus_dev *next; 30 struct sbus_dev *next;
31 struct sbus_dev *child; 31 struct sbus_dev *child;
32 struct sbus_dev *parent; 32 struct sbus_dev *parent;
33 int prom_node;
34 char prom_name[64];
35 int slot;
36}; 33};
37#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev) 34#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev)
38 35
@@ -41,10 +38,6 @@ struct sbus_bus {
41 struct of_device ofdev; 38 struct of_device ofdev;
42 struct sbus_dev *devices; /* Tree of SBUS devices */ 39 struct sbus_dev *devices; /* Tree of SBUS devices */
43 struct sbus_bus *next; /* Next SBUS in system */ 40 struct sbus_bus *next; /* Next SBUS in system */
44 int prom_node; /* OBP node of SBUS */
45 char prom_name[64]; /* Usually "sbus" or "sbi" */
46 int clock_freq;
47 int portid;
48}; 41};
49#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev) 42#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
50 43
diff --git a/drivers/sbus/sbus.c b/drivers/sbus/sbus.c
index 3b30f9995129..64c3e45875ff 100644
--- a/drivers/sbus/sbus.c
+++ b/drivers/sbus/sbus.c
@@ -51,9 +51,6 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde
51 struct dev_archdata *sd; 51 struct dev_archdata *sd;
52 int err; 52 int err;
53 53
54 sdev->prom_node = dp->node;
55 strcpy(sdev->prom_name, dp->name);
56
57 sd = &sdev->ofdev.dev.archdata; 54 sd = &sdev->ofdev.dev.archdata;
58 sd->prom_node = dp; 55 sd->prom_node = dp;
59 sd->op = &sdev->ofdev; 56 sd->op = &sdev->ofdev;
@@ -107,30 +104,17 @@ static void __init walk_children(struct device_node *dp, struct sbus_dev *parent
107 104
108static void __init build_one_sbus(struct device_node *dp, int num_sbus) 105static void __init build_one_sbus(struct device_node *dp, int num_sbus)
109{ 106{
110 struct sbus_bus *sbus;
111 unsigned int sbus_clock;
112 struct device_node *dev_dp; 107 struct device_node *dev_dp;
108 struct sbus_bus *sbus;
113 109
114 sbus = kzalloc(sizeof(struct sbus_bus), GFP_ATOMIC); 110 sbus = kzalloc(sizeof(struct sbus_bus), GFP_ATOMIC);
115 if (!sbus) 111 if (!sbus)
116 return; 112 return;
117 113
118 sbus->prom_node = dp->node;
119
120 sbus_setup_iommu(sbus, dp); 114 sbus_setup_iommu(sbus, dp);
121 115
122 printk("sbus%d: ", num_sbus); 116 printk("sbus%d: ", num_sbus);
123 117
124 sbus_clock = of_getintprop_default(dp, "clock-frequency",
125 (25*1000*1000));
126 sbus->clock_freq = sbus_clock;
127
128 printk("Clock %d.%d MHz\n", (int) ((sbus_clock/1000)/1000),
129 (int) (((sbus_clock/1000)%1000 != 0) ?
130 (((sbus_clock/1000)%1000) + 1000) : 0));
131
132 strcpy(sbus->prom_name, dp->name);
133
134 sbus->ofdev.node = dp; 118 sbus->ofdev.node = dp;
135 sbus->ofdev.dev.parent = NULL; 119 sbus->ofdev.dev.parent = NULL;
136 sbus->ofdev.dev.bus = &sbus_bus_type; 120 sbus->ofdev.dev.bus = &sbus_bus_type;