Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119437
b: refs/heads/master
c: 90f6713
h: refs/heads/master
i:
  119435: b80e799
v: v3
  • Loading branch information
Kay Sievers authored and Kyle McMartin committed Nov 26, 2008
1 parent 1278ba3 commit 98fc2ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 7a3f5134a8f5bd7fa38b5645eef05e8a4eb62951
refs/heads/master: 90f671301a5e2678cdc99f611cd842161c3bb87f
4 changes: 2 additions & 2 deletions trunk/arch/parisc/include/asm/parisc-device.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ struct parisc_driver {
#define to_parisc_driver(d) container_of(d, struct parisc_driver, drv)
#define parisc_parent(d) to_parisc_device(d->dev.parent)

static inline char *parisc_pathname(struct parisc_device *d)
static inline const char *parisc_pathname(struct parisc_device *d)
{
return d->dev.bus_id;
return dev_name(&d->dev);
}

static inline void
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/parisc/kernel/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct hppa_dma_ops *hppa_dma_ops __read_mostly;
EXPORT_SYMBOL(hppa_dma_ops);

static struct device root = {
.bus_id = "parisc",
.init_name = "parisc",
};

static inline int check_dev(struct device *dev)
Expand Down Expand Up @@ -393,7 +393,8 @@ EXPORT_SYMBOL(print_pci_hwpath);
static void setup_bus_id(struct parisc_device *padev)
{
struct hardware_path path;
char *output = padev->dev.bus_id;
char name[20];
char *output = name;
int i;

get_node_path(padev->dev.parent, &path);
Expand All @@ -404,6 +405,7 @@ static void setup_bus_id(struct parisc_device *padev)
output += sprintf(output, "%u:", (unsigned char) path.bc[i]);
}
sprintf(output, "%u", (unsigned char) padev->hw_path);
dev_set_name(&padev->dev, name);
}

struct parisc_device * create_tree_node(char id, struct device *parent)
Expand Down

0 comments on commit 98fc2ac

Please sign in to comment.