diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-08-14 06:19:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-14 06:19:59 -0400 |
commit | 8d7ccaa545490cdffdfaff0842436a8dd85cf47b (patch) | |
tree | 8129b5907161bc6ae26deb3645ce1e280c5e1f51 /samples | |
parent | b2139aa0eec330c711c5a279db361e5ef1178e78 (diff) | |
parent | 30a2f3c60a84092c8084dfe788b710f8d0768cd4 (diff) |
Merge commit 'v2.6.27-rc3' into x86/prototypes
Conflicts:
include/asm-x86/dma-mapping.h
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/firmware_class/firmware_sample_firmware_class.c | 2 | ||||
-rw-r--r-- | samples/kobject/kset-example.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/firmware_class/firmware_sample_firmware_class.c b/samples/firmware_class/firmware_sample_firmware_class.c index 9392116e47b0..e6cf7a43a297 100644 --- a/samples/firmware_class/firmware_sample_firmware_class.c +++ b/samples/firmware_class/firmware_sample_firmware_class.c | |||
@@ -124,7 +124,7 @@ static int fw_setup_class_device(struct class_device *class_dev, | |||
124 | class_dev->class_id[BUS_ID_SIZE-1] = '\0'; | 124 | class_dev->class_id[BUS_ID_SIZE-1] = '\0'; |
125 | class_dev->dev = device; | 125 | class_dev->dev = device; |
126 | 126 | ||
127 | class_dev->class = &firmware_class, | 127 | class_dev->class = &firmware_class; |
128 | class_set_devdata(class_dev, fw_priv); | 128 | class_set_devdata(class_dev, fw_priv); |
129 | retval = class_device_register(class_dev); | 129 | retval = class_device_register(class_dev); |
130 | if (retval) { | 130 | if (retval) { |
diff --git a/samples/kobject/kset-example.c b/samples/kobject/kset-example.c index b0a1b4fe6584..7395c0bbae18 100644 --- a/samples/kobject/kset-example.c +++ b/samples/kobject/kset-example.c | |||
@@ -211,7 +211,7 @@ static struct foo_obj *create_foo_obj(const char *name) | |||
211 | */ | 211 | */ |
212 | retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name); | 212 | retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name); |
213 | if (retval) { | 213 | if (retval) { |
214 | kfree(foo); | 214 | kobject_put(&foo->kobj); |
215 | return NULL; | 215 | return NULL; |
216 | } | 216 | } |
217 | 217 | ||