diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-03-09 16:33:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-04-27 10:57:28 -0700 |
commit | a456b7023e0abf80bb03b0bdf5471b48878e5c49 (patch) | |
tree | 8e9034c4538e5fa9ae6914691430c6aedfc7e6bf /arch/cris | |
parent | 864062457a2e444227bd368ca5f2a2b740de604f (diff) |
dev_printk and new-style class devices
As the new-style class devices (as opposed to old-style struct
class_device) are becoming more widely used, I noticed that the
dev_printk-based functions are not working properly with these.
New-style class devices have no driver nor bus, almost by definition,
and as a result dev_driver_string(), which is used as the first
parameter of dev_printk, resolves to an empty string. This causes
entries like the following to show in my logs:
i2c-2: adapter [SMBus stub driver] registered
Notice the unaesthetical leading whitespace. In order to fix this
problem, I suggest that we extend dev_driver_string to deal with
new-style class devices:
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/cris')
0 files changed, 0 insertions, 0 deletions