Changeset 3704
- Timestamp:
- 09/15/02 18:41:41 (6 years ago)
- Files:
-
- i2c/trunk/doc/writing-clients (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c/trunk/doc/writing-clients
r3594 r3704 449 449 need it, remove it. We do it here to help to lessen memory 450 450 fragmentation. */ 451 if (! (new_client = kmalloc(sizeof(struct i2c_client) )+451 if (! (new_client = kmalloc(sizeof(struct i2c_client) + 452 452 sizeof(struct foo_data), 453 GFP_KERNEL)) {453 GFP_KERNEL))) { 454 454 err = -ENOMEM; 455 455 goto ERROR0;
