i2c: Do not use device name after device_unregister
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 16 Jan 2010 19:43:13 +0000 (20:43 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 16 Jan 2010 19:43:13 +0000 (20:43 +0100)
commitc556752109794a5ff199b80a1673336b4df8433a
treec52e1517783c04a77eed0faad64f9bcd5799f0b7
parent22f8b2695eda496026623020811cae34590ee3d7
i2c: Do not use device name after device_unregister

dev_dbg outputs dev_name, which is released with device_unregister. This bug
resulted in output like this:

i2c Xy2�0: adapter [SMBus I801 adapter at 1880] unregistered

The right output would be:
i2c i2c-0: adapter [SMBus I801 adapter at 1880] unregistered

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c