aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/fw-device.c')
-rw-r--r--drivers/firewire/fw-device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c
index 8e5f17f5e98a..c1ce465d9710 100644
--- a/drivers/firewire/fw-device.c
+++ b/drivers/firewire/fw-device.c
@@ -138,7 +138,7 @@ fw_unit_uevent(struct device *dev, char **envp, int num_envp,
138 int length = 0; 138 int length = 0;
139 int i = 0; 139 int i = 0;
140 140
141 get_modalias(unit, modalias, sizeof modalias); 141 get_modalias(unit, modalias, sizeof(modalias));
142 142
143 if (add_uevent_var(envp, num_envp, &i, 143 if (add_uevent_var(envp, num_envp, &i,
144 buffer, buffer_size, &length, 144 buffer, buffer_size, &length,
@@ -533,7 +533,7 @@ static void create_units(struct fw_device *device)
533 * Get the address of the unit directory and try to 533 * Get the address of the unit directory and try to
534 * match the drivers id_tables against it. 534 * match the drivers id_tables against it.
535 */ 535 */
536 unit = kzalloc(sizeof *unit, GFP_KERNEL); 536 unit = kzalloc(sizeof(*unit), GFP_KERNEL);
537 if (unit == NULL) { 537 if (unit == NULL) {
538 fw_error("failed to allocate memory for unit\n"); 538 fw_error("failed to allocate memory for unit\n");
539 continue; 539 continue;
@@ -543,7 +543,7 @@ static void create_units(struct fw_device *device)
543 unit->device.bus = &fw_bus_type; 543 unit->device.bus = &fw_bus_type;
544 unit->device.type = &fw_unit_type; 544 unit->device.type = &fw_unit_type;
545 unit->device.parent = &device->device; 545 unit->device.parent = &device->device;
546 snprintf(unit->device.bus_id, sizeof unit->device.bus_id, 546 snprintf(unit->device.bus_id, sizeof(unit->device.bus_id),
547 "%s.%d", device->device.bus_id, i++); 547 "%s.%d", device->device.bus_id, i++);
548 548
549 init_fw_attribute_group(&unit->device, 549 init_fw_attribute_group(&unit->device,
@@ -653,7 +653,7 @@ static void fw_device_init(struct work_struct *work)
653 device->device.type = &fw_device_type; 653 device->device.type = &fw_device_type;
654 device->device.parent = device->card->device; 654 device->device.parent = device->card->device;
655 device->device.devt = MKDEV(fw_cdev_major, minor); 655 device->device.devt = MKDEV(fw_cdev_major, minor);
656 snprintf(device->device.bus_id, sizeof device->device.bus_id, 656 snprintf(device->device.bus_id, sizeof(device->device.bus_id),
657 "fw%d", minor); 657 "fw%d", minor);
658 658
659 init_fw_attribute_group(&device->device, 659 init_fw_attribute_group(&device->device,