diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-27 04:18:02 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-29 02:15:18 -0700 |
commit | c6e5f661eee0ff62e7fdb263cfeee73c20dd6e99 (patch) | |
tree | 2fa811c8f3687b2c3dea092fd6486be478475ff4 /drivers | |
parent | 9b9644c6d91e9fd8edecba3ae57a35285cfce9db (diff) | |
download | kernel_samsung_aries-c6e5f661eee0ff62e7fdb263cfeee73c20dd6e99.zip kernel_samsung_aries-c6e5f661eee0ff62e7fdb263cfeee73c20dd6e99.tar.gz kernel_samsung_aries-c6e5f661eee0ff62e7fdb263cfeee73c20dd6e99.tar.bz2 |
sparc: Kill OBP property members of sbus_dev and sbus_bus
Unused.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/sbus/sbus.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/sbus/sbus.c b/drivers/sbus/sbus.c index 3b30f99..64c3e45 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 struct dev_archdata *sd; int err; - sdev->prom_node = dp->node; - strcpy(sdev->prom_name, dp->name); - sd = &sdev->ofdev.dev.archdata; sd->prom_node = dp; sd->op = &sdev->ofdev; @@ -107,30 +104,17 @@ static void __init walk_children(struct device_node *dp, struct sbus_dev *parent static void __init build_one_sbus(struct device_node *dp, int num_sbus) { - struct sbus_bus *sbus; - unsigned int sbus_clock; struct device_node *dev_dp; + struct sbus_bus *sbus; sbus = kzalloc(sizeof(struct sbus_bus), GFP_ATOMIC); if (!sbus) return; - sbus->prom_node = dp->node; - sbus_setup_iommu(sbus, dp); printk("sbus%d: ", num_sbus); - sbus_clock = of_getintprop_default(dp, "clock-frequency", - (25*1000*1000)); - sbus->clock_freq = sbus_clock; - - printk("Clock %d.%d MHz\n", (int) ((sbus_clock/1000)/1000), - (int) (((sbus_clock/1000)%1000 != 0) ? - (((sbus_clock/1000)%1000) + 1000) : 0)); - - strcpy(sbus->prom_name, dp->name); - sbus->ofdev.node = dp; sbus->ofdev.dev.parent = NULL; sbus->ofdev.dev.bus = &sbus_bus_type; |