1 From b0c1e8a5a319e506d173588258c134aec7421513 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Fri, 25 Jul 2008 23:06:15 +0100
4 Subject: [PATCH] debug-backtrace-not-choke-on-null-dev_blah.patch
6 Signed-off-by: Andy Green <andy@openmoko.com>
8 drivers/base/core.c | 5 +++++
9 1 files changed, 5 insertions(+), 0 deletions(-)
11 diff --git a/drivers/base/core.c b/drivers/base/core.c
12 index ee0a51a..a1251c7 100644
13 --- a/drivers/base/core.c
14 +++ b/drivers/base/core.c
15 @@ -51,6 +51,11 @@ static inline int device_is_not_partition(struct device *dev)
17 const char *dev_driver_string(struct device *dev)
20 + printk(KERN_ERR"Null dev to dev_driver_string\n");
24 return dev->driver ? dev->driver->name :
25 (dev->bus ? dev->bus->name :
26 (dev->class ? dev->class->name : ""));