Driver core: Make platform_device.id an int
authorJean Delvare <khali@linux-fr.org>
Sun, 9 Sep 2007 10:54:16 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:51:07 +0000 (14:51 -0700)
commit1359555eb77d240b7c1d7ee75bb07e89e89770e4
tree62ee852622700d23dffa7593c84420762e07147f
parent44b760a825fae65629fb04b1deeab68c6bef5c50
Driver core: Make platform_device.id an int

While platform_device.id is a u32, platform_device_add() handles "-1"
as a special id value. This has potential for confusion and bugs.
Making it an int instead should prevent problems from happening in
the future.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c
include/linux/platform_device.h