diff options
author | Yani Ioannou <yani.ioannou@gmail.com> | 2005-05-17 06:42:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:34 -0400 |
commit | e404e274f62665f3333d6a539d0d3701f678a598 (patch) | |
tree | ef6618291524edaab45c4123274730c7d57ae852 /drivers | |
parent | a5099cfc2e82240b0a3e72ad79a5969d5af1a7dc (diff) |
[PATCH] Driver Core: drivers/i2c/chips/w83781d.c - drivers/s390/block/dcssblk.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/chips/w83781d.c | 52 | ||||
-rw-r--r-- | drivers/i2c/chips/w83l785ts.c | 4 | ||||
-rw-r--r-- | drivers/i2c/i2c-core.c | 4 | ||||
-rw-r--r-- | drivers/ieee1394/nodemgr.c | 16 | ||||
-rw-r--r-- | drivers/ieee1394/sbp2.c | 2 | ||||
-rw-r--r-- | drivers/input/gameport/gameport.c | 4 | ||||
-rw-r--r-- | drivers/input/keyboard/atkbd.c | 4 | ||||
-rw-r--r-- | drivers/input/mouse/psmouse.h | 4 | ||||
-rw-r--r-- | drivers/input/serio/serio.c | 16 | ||||
-rw-r--r-- | drivers/macintosh/therm_adt746x.c | 11 | ||||
-rw-r--r-- | drivers/macintosh/therm_pm72.c | 4 | ||||
-rw-r--r-- | drivers/macintosh/therm_windtunnel.c | 4 | ||||
-rw-r--r-- | drivers/mca/mca-bus.c | 4 | ||||
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 2 | ||||
-rw-r--r-- | drivers/message/fusion/mptscsih.h | 2 | ||||
-rw-r--r-- | drivers/mmc/mmc_sysfs.c | 2 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpqphp_sysfs.c | 4 | ||||
-rw-r--r-- | drivers/pci/hotplug/shpchp_sysfs.c | 4 | ||||
-rw-r--r-- | drivers/pci/pci-sysfs.c | 6 | ||||
-rw-r--r-- | drivers/pcmcia/ds.c | 4 | ||||
-rw-r--r-- | drivers/pnp/card.c | 4 | ||||
-rw-r--r-- | drivers/pnp/interface.c | 8 | ||||
-rw-r--r-- | drivers/s390/block/dasd_devmap.c | 10 | ||||
-rw-r--r-- | drivers/s390/block/dcssblk.c | 24 |
24 files changed, 100 insertions, 99 deletions
diff --git a/drivers/i2c/chips/w83781d.c b/drivers/i2c/chips/w83781d.c index 4954e465c419..c3926d2d8ac6 100644 --- a/drivers/i2c/chips/w83781d.c +++ b/drivers/i2c/chips/w83781d.c | |||
@@ -309,18 +309,18 @@ store_in_reg(MAX, max); | |||
309 | 309 | ||
310 | #define sysfs_in_offset(offset) \ | 310 | #define sysfs_in_offset(offset) \ |
311 | static ssize_t \ | 311 | static ssize_t \ |
312 | show_regs_in_##offset (struct device *dev, char *buf) \ | 312 | show_regs_in_##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
313 | { \ | 313 | { \ |
314 | return show_in(dev, buf, offset); \ | 314 | return show_in(dev, buf, offset); \ |
315 | } \ | 315 | } \ |
316 | static DEVICE_ATTR(in##offset##_input, S_IRUGO, show_regs_in_##offset, NULL); | 316 | static DEVICE_ATTR(in##offset##_input, S_IRUGO, show_regs_in_##offset, NULL); |
317 | 317 | ||
318 | #define sysfs_in_reg_offset(reg, offset) \ | 318 | #define sysfs_in_reg_offset(reg, offset) \ |
319 | static ssize_t show_regs_in_##reg##offset (struct device *dev, char *buf) \ | 319 | static ssize_t show_regs_in_##reg##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
320 | { \ | 320 | { \ |
321 | return show_in_##reg (dev, buf, offset); \ | 321 | return show_in_##reg (dev, buf, offset); \ |
322 | } \ | 322 | } \ |
323 | static ssize_t store_regs_in_##reg##offset (struct device *dev, const char *buf, size_t count) \ | 323 | static ssize_t store_regs_in_##reg##offset (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) \ |
324 | { \ | 324 | { \ |
325 | return store_in_##reg (dev, buf, count, offset); \ | 325 | return store_in_##reg (dev, buf, count, offset); \ |
326 | } \ | 326 | } \ |
@@ -378,18 +378,18 @@ store_fan_min(struct device *dev, const char *buf, size_t count, int nr) | |||
378 | } | 378 | } |
379 | 379 | ||
380 | #define sysfs_fan_offset(offset) \ | 380 | #define sysfs_fan_offset(offset) \ |
381 | static ssize_t show_regs_fan_##offset (struct device *dev, char *buf) \ | 381 | static ssize_t show_regs_fan_##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
382 | { \ | 382 | { \ |
383 | return show_fan(dev, buf, offset); \ | 383 | return show_fan(dev, buf, offset); \ |
384 | } \ | 384 | } \ |
385 | static DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_regs_fan_##offset, NULL); | 385 | static DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_regs_fan_##offset, NULL); |
386 | 386 | ||
387 | #define sysfs_fan_min_offset(offset) \ | 387 | #define sysfs_fan_min_offset(offset) \ |
388 | static ssize_t show_regs_fan_min##offset (struct device *dev, char *buf) \ | 388 | static ssize_t show_regs_fan_min##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
389 | { \ | 389 | { \ |
390 | return show_fan_min(dev, buf, offset); \ | 390 | return show_fan_min(dev, buf, offset); \ |
391 | } \ | 391 | } \ |
392 | static ssize_t store_regs_fan_min##offset (struct device *dev, const char *buf, size_t count) \ | 392 | static ssize_t store_regs_fan_min##offset (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) \ |
393 | { \ | 393 | { \ |
394 | return store_fan_min(dev, buf, count, offset); \ | 394 | return store_fan_min(dev, buf, count, offset); \ |
395 | } \ | 395 | } \ |
@@ -452,18 +452,18 @@ store_temp_reg(HYST, max_hyst); | |||
452 | 452 | ||
453 | #define sysfs_temp_offset(offset) \ | 453 | #define sysfs_temp_offset(offset) \ |
454 | static ssize_t \ | 454 | static ssize_t \ |
455 | show_regs_temp_##offset (struct device *dev, char *buf) \ | 455 | show_regs_temp_##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
456 | { \ | 456 | { \ |
457 | return show_temp(dev, buf, offset); \ | 457 | return show_temp(dev, buf, offset); \ |
458 | } \ | 458 | } \ |
459 | static DEVICE_ATTR(temp##offset##_input, S_IRUGO, show_regs_temp_##offset, NULL); | 459 | static DEVICE_ATTR(temp##offset##_input, S_IRUGO, show_regs_temp_##offset, NULL); |
460 | 460 | ||
461 | #define sysfs_temp_reg_offset(reg, offset) \ | 461 | #define sysfs_temp_reg_offset(reg, offset) \ |
462 | static ssize_t show_regs_temp_##reg##offset (struct device *dev, char *buf) \ | 462 | static ssize_t show_regs_temp_##reg##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
463 | { \ | 463 | { \ |
464 | return show_temp_##reg (dev, buf, offset); \ | 464 | return show_temp_##reg (dev, buf, offset); \ |
465 | } \ | 465 | } \ |
466 | static ssize_t store_regs_temp_##reg##offset (struct device *dev, const char *buf, size_t count) \ | 466 | static ssize_t store_regs_temp_##reg##offset (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) \ |
467 | { \ | 467 | { \ |
468 | return store_temp_##reg (dev, buf, count, offset); \ | 468 | return store_temp_##reg (dev, buf, count, offset); \ |
469 | } \ | 469 | } \ |
@@ -486,7 +486,7 @@ device_create_file(&client->dev, &dev_attr_temp##offset##_max_hyst); \ | |||
486 | } while (0) | 486 | } while (0) |
487 | 487 | ||
488 | static ssize_t | 488 | static ssize_t |
489 | show_vid_reg(struct device *dev, char *buf) | 489 | show_vid_reg(struct device *dev, struct device_attribute *attr, char *buf) |
490 | { | 490 | { |
491 | struct w83781d_data *data = w83781d_update_device(dev); | 491 | struct w83781d_data *data = w83781d_update_device(dev); |
492 | return sprintf(buf, "%ld\n", (long) vid_from_reg(data->vid, data->vrm)); | 492 | return sprintf(buf, "%ld\n", (long) vid_from_reg(data->vid, data->vrm)); |
@@ -497,14 +497,14 @@ DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL); | |||
497 | #define device_create_file_vid(client) \ | 497 | #define device_create_file_vid(client) \ |
498 | device_create_file(&client->dev, &dev_attr_cpu0_vid); | 498 | device_create_file(&client->dev, &dev_attr_cpu0_vid); |
499 | static ssize_t | 499 | static ssize_t |
500 | show_vrm_reg(struct device *dev, char *buf) | 500 | show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) |
501 | { | 501 | { |
502 | struct w83781d_data *data = w83781d_update_device(dev); | 502 | struct w83781d_data *data = w83781d_update_device(dev); |
503 | return sprintf(buf, "%ld\n", (long) data->vrm); | 503 | return sprintf(buf, "%ld\n", (long) data->vrm); |
504 | } | 504 | } |
505 | 505 | ||
506 | static ssize_t | 506 | static ssize_t |
507 | store_vrm_reg(struct device *dev, const char *buf, size_t count) | 507 | store_vrm_reg(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
508 | { | 508 | { |
509 | struct i2c_client *client = to_i2c_client(dev); | 509 | struct i2c_client *client = to_i2c_client(dev); |
510 | struct w83781d_data *data = i2c_get_clientdata(client); | 510 | struct w83781d_data *data = i2c_get_clientdata(client); |
@@ -521,7 +521,7 @@ DEVICE_ATTR(vrm, S_IRUGO | S_IWUSR, show_vrm_reg, store_vrm_reg); | |||
521 | #define device_create_file_vrm(client) \ | 521 | #define device_create_file_vrm(client) \ |
522 | device_create_file(&client->dev, &dev_attr_vrm); | 522 | device_create_file(&client->dev, &dev_attr_vrm); |
523 | static ssize_t | 523 | static ssize_t |
524 | show_alarms_reg(struct device *dev, char *buf) | 524 | show_alarms_reg(struct device *dev, struct device_attribute *attr, char *buf) |
525 | { | 525 | { |
526 | struct w83781d_data *data = w83781d_update_device(dev); | 526 | struct w83781d_data *data = w83781d_update_device(dev); |
527 | return sprintf(buf, "%ld\n", (long) ALARMS_FROM_REG(data->alarms)); | 527 | return sprintf(buf, "%ld\n", (long) ALARMS_FROM_REG(data->alarms)); |
@@ -531,13 +531,13 @@ static | |||
531 | DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL); | 531 | DEVICE_ATTR(alarms, S_IRUGO, show_alarms_reg, NULL); |
532 | #define device_create_file_alarms(client) \ | 532 | #define device_create_file_alarms(client) \ |
533 | device_create_file(&client->dev, &dev_attr_alarms); | 533 | device_create_file(&client->dev, &dev_attr_alarms); |
534 | static ssize_t show_beep_mask (struct device *dev, char *buf) | 534 | static ssize_t show_beep_mask (struct device *dev, struct device_attribute *attr, char *buf) |
535 | { | 535 | { |
536 | struct w83781d_data *data = w83781d_update_device(dev); | 536 | struct w83781d_data *data = w83781d_update_device(dev); |
537 | return sprintf(buf, "%ld\n", | 537 | return sprintf(buf, "%ld\n", |
538 | (long)BEEP_MASK_FROM_REG(data->beep_mask, data->type)); | 538 | (long)BEEP_MASK_FROM_REG(data->beep_mask, data->type)); |
539 | } | 539 | } |
540 | static ssize_t show_beep_enable (struct device *dev, char *buf) | 540 | static ssize_t show_beep_enable (struct device *dev, struct device_attribute *attr, char *buf) |
541 | { | 541 | { |
542 | struct w83781d_data *data = w83781d_update_device(dev); | 542 | struct w83781d_data *data = w83781d_update_device(dev); |
543 | return sprintf(buf, "%ld\n", | 543 | return sprintf(buf, "%ld\n", |
@@ -583,11 +583,11 @@ store_beep_reg(struct device *dev, const char *buf, size_t count, | |||
583 | } | 583 | } |
584 | 584 | ||
585 | #define sysfs_beep(REG, reg) \ | 585 | #define sysfs_beep(REG, reg) \ |
586 | static ssize_t show_regs_beep_##reg (struct device *dev, char *buf) \ | 586 | static ssize_t show_regs_beep_##reg (struct device *dev, struct device_attribute *attr, char *buf) \ |
587 | { \ | 587 | { \ |
588 | return show_beep_##reg(dev, buf); \ | 588 | return show_beep_##reg(dev, attr, buf); \ |
589 | } \ | 589 | } \ |
590 | static ssize_t store_regs_beep_##reg (struct device *dev, const char *buf, size_t count) \ | 590 | static ssize_t store_regs_beep_##reg (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) \ |
591 | { \ | 591 | { \ |
592 | return store_beep_reg(dev, buf, count, BEEP_##REG); \ | 592 | return store_beep_reg(dev, buf, count, BEEP_##REG); \ |
593 | } \ | 593 | } \ |
@@ -653,11 +653,11 @@ store_fan_div_reg(struct device *dev, const char *buf, size_t count, int nr) | |||
653 | } | 653 | } |
654 | 654 | ||
655 | #define sysfs_fan_div(offset) \ | 655 | #define sysfs_fan_div(offset) \ |
656 | static ssize_t show_regs_fan_div_##offset (struct device *dev, char *buf) \ | 656 | static ssize_t show_regs_fan_div_##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
657 | { \ | 657 | { \ |
658 | return show_fan_div_reg(dev, buf, offset); \ | 658 | return show_fan_div_reg(dev, buf, offset); \ |
659 | } \ | 659 | } \ |
660 | static ssize_t store_regs_fan_div_##offset (struct device *dev, const char *buf, size_t count) \ | 660 | static ssize_t store_regs_fan_div_##offset (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) \ |
661 | { \ | 661 | { \ |
662 | return store_fan_div_reg(dev, buf, count, offset - 1); \ | 662 | return store_fan_div_reg(dev, buf, count, offset - 1); \ |
663 | } \ | 663 | } \ |
@@ -737,11 +737,11 @@ store_pwmenable_reg(struct device *dev, const char *buf, size_t count, int nr) | |||
737 | } | 737 | } |
738 | 738 | ||
739 | #define sysfs_pwm(offset) \ | 739 | #define sysfs_pwm(offset) \ |
740 | static ssize_t show_regs_pwm_##offset (struct device *dev, char *buf) \ | 740 | static ssize_t show_regs_pwm_##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
741 | { \ | 741 | { \ |
742 | return show_pwm_reg(dev, buf, offset); \ | 742 | return show_pwm_reg(dev, buf, offset); \ |
743 | } \ | 743 | } \ |
744 | static ssize_t store_regs_pwm_##offset (struct device *dev, \ | 744 | static ssize_t store_regs_pwm_##offset (struct device *dev, struct device_attribute *attr, \ |
745 | const char *buf, size_t count) \ | 745 | const char *buf, size_t count) \ |
746 | { \ | 746 | { \ |
747 | return store_pwm_reg(dev, buf, count, offset); \ | 747 | return store_pwm_reg(dev, buf, count, offset); \ |
@@ -750,11 +750,11 @@ static DEVICE_ATTR(pwm##offset, S_IRUGO | S_IWUSR, \ | |||
750 | show_regs_pwm_##offset, store_regs_pwm_##offset); | 750 | show_regs_pwm_##offset, store_regs_pwm_##offset); |
751 | 751 | ||
752 | #define sysfs_pwmenable(offset) \ | 752 | #define sysfs_pwmenable(offset) \ |
753 | static ssize_t show_regs_pwmenable_##offset (struct device *dev, char *buf) \ | 753 | static ssize_t show_regs_pwmenable_##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
754 | { \ | 754 | { \ |
755 | return show_pwmenable_reg(dev, buf, offset); \ | 755 | return show_pwmenable_reg(dev, buf, offset); \ |
756 | } \ | 756 | } \ |
757 | static ssize_t store_regs_pwmenable_##offset (struct device *dev, \ | 757 | static ssize_t store_regs_pwmenable_##offset (struct device *dev, struct device_attribute *attr, \ |
758 | const char *buf, size_t count) \ | 758 | const char *buf, size_t count) \ |
759 | { \ | 759 | { \ |
760 | return store_pwmenable_reg(dev, buf, count, offset); \ | 760 | return store_pwmenable_reg(dev, buf, count, offset); \ |
@@ -832,11 +832,11 @@ store_sensor_reg(struct device *dev, const char *buf, size_t count, int nr) | |||
832 | } | 832 | } |
833 | 833 | ||
834 | #define sysfs_sensor(offset) \ | 834 | #define sysfs_sensor(offset) \ |
835 | static ssize_t show_regs_sensor_##offset (struct device *dev, char *buf) \ | 835 | static ssize_t show_regs_sensor_##offset (struct device *dev, struct device_attribute *attr, char *buf) \ |
836 | { \ | 836 | { \ |
837 | return show_sensor_reg(dev, buf, offset); \ | 837 | return show_sensor_reg(dev, buf, offset); \ |
838 | } \ | 838 | } \ |
839 | static ssize_t store_regs_sensor_##offset (struct device *dev, const char *buf, size_t count) \ | 839 | static ssize_t store_regs_sensor_##offset (struct device *dev, struct device_attribute *attr, const char *buf, size_t count) \ |
840 | { \ | 840 | { \ |
841 | return store_sensor_reg(dev, buf, count, offset); \ | 841 | return store_sensor_reg(dev, buf, count, offset); \ |
842 | } \ | 842 | } \ |
diff --git a/drivers/i2c/chips/w83l785ts.c b/drivers/i2c/chips/w83l785ts.c index 59bbc5881fa6..74d4b58e4237 100644 --- a/drivers/i2c/chips/w83l785ts.c +++ b/drivers/i2c/chips/w83l785ts.c | |||
@@ -118,13 +118,13 @@ struct w83l785ts_data { | |||
118 | * Sysfs stuff | 118 | * Sysfs stuff |
119 | */ | 119 | */ |
120 | 120 | ||
121 | static ssize_t show_temp(struct device *dev, char *buf) | 121 | static ssize_t show_temp(struct device *dev, struct device_attribute *attr, char *buf) |
122 | { | 122 | { |
123 | struct w83l785ts_data *data = w83l785ts_update_device(dev); | 123 | struct w83l785ts_data *data = w83l785ts_update_device(dev); |
124 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); | 124 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); |
125 | } | 125 | } |
126 | 126 | ||
127 | static ssize_t show_temp_over(struct device *dev, char *buf) | 127 | static ssize_t show_temp_over(struct device *dev, struct device_attribute *attr, char *buf) |
128 | { | 128 | { |
129 | struct w83l785ts_data *data = w83l785ts_update_device(dev); | 129 | struct w83l785ts_data *data = w83l785ts_update_device(dev); |
130 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); | 130 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); |
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 9011627d7eb0..a22e53badacb 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -103,7 +103,7 @@ static struct class i2c_adapter_class = { | |||
103 | .release = &i2c_adapter_class_dev_release, | 103 | .release = &i2c_adapter_class_dev_release, |
104 | }; | 104 | }; |
105 | 105 | ||
106 | static ssize_t show_adapter_name(struct device *dev, char *buf) | 106 | static ssize_t show_adapter_name(struct device *dev, struct device_attribute *attr, char *buf) |
107 | { | 107 | { |
108 | struct i2c_adapter *adap = dev_to_i2c_adapter(dev); | 108 | struct i2c_adapter *adap = dev_to_i2c_adapter(dev); |
109 | return sprintf(buf, "%s\n", adap->name); | 109 | return sprintf(buf, "%s\n", adap->name); |
@@ -117,7 +117,7 @@ static void i2c_client_release(struct device *dev) | |||
117 | complete(&client->released); | 117 | complete(&client->released); |
118 | } | 118 | } |
119 | 119 | ||
120 | static ssize_t show_client_name(struct device *dev, char *buf) | 120 | static ssize_t show_client_name(struct device *dev, struct device_attribute *attr, char *buf) |
121 | { | 121 | { |
122 | struct i2c_client *client = to_i2c_client(dev); | 122 | struct i2c_client *client = to_i2c_client(dev); |
123 | return sprintf(buf, "%s\n", client->name); | 123 | return sprintf(buf, "%s\n", client->name); |
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index a155b39469a1..32abb6dda888 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c | |||
@@ -220,7 +220,7 @@ struct device nodemgr_dev_template_host = { | |||
220 | 220 | ||
221 | 221 | ||
222 | #define fw_attr(class, class_type, field, type, format_string) \ | 222 | #define fw_attr(class, class_type, field, type, format_string) \ |
223 | static ssize_t fw_show_##class##_##field (struct device *dev, char *buf)\ | 223 | static ssize_t fw_show_##class##_##field (struct device *dev, struct device_attribute *attr, char *buf)\ |
224 | { \ | 224 | { \ |
225 | class_type *class; \ | 225 | class_type *class; \ |
226 | class = container_of(dev, class_type, device); \ | 226 | class = container_of(dev, class_type, device); \ |
@@ -232,7 +232,7 @@ static struct device_attribute dev_attr_##class##_##field = { \ | |||
232 | }; | 232 | }; |
233 | 233 | ||
234 | #define fw_attr_td(class, class_type, td_kv) \ | 234 | #define fw_attr_td(class, class_type, td_kv) \ |
235 | static ssize_t fw_show_##class##_##td_kv (struct device *dev, char *buf)\ | 235 | static ssize_t fw_show_##class##_##td_kv (struct device *dev, struct device_attribute *attr, char *buf)\ |
236 | { \ | 236 | { \ |
237 | int len; \ | 237 | int len; \ |
238 | class_type *class = container_of(dev, class_type, device); \ | 238 | class_type *class = container_of(dev, class_type, device); \ |
@@ -265,7 +265,7 @@ static struct driver_attribute driver_attr_drv_##field = { \ | |||
265 | }; | 265 | }; |
266 | 266 | ||
267 | 267 | ||
268 | static ssize_t fw_show_ne_bus_options(struct device *dev, char *buf) | 268 | static ssize_t fw_show_ne_bus_options(struct device *dev, struct device_attribute *attr, char *buf) |
269 | { | 269 | { |
270 | struct node_entry *ne = container_of(dev, struct node_entry, device); | 270 | struct node_entry *ne = container_of(dev, struct node_entry, device); |
271 | 271 | ||
@@ -281,7 +281,7 @@ static ssize_t fw_show_ne_bus_options(struct device *dev, char *buf) | |||
281 | static DEVICE_ATTR(bus_options,S_IRUGO,fw_show_ne_bus_options,NULL); | 281 | static DEVICE_ATTR(bus_options,S_IRUGO,fw_show_ne_bus_options,NULL); |
282 | 282 | ||
283 | 283 | ||
284 | static ssize_t fw_show_ne_tlabels_free(struct device *dev, char *buf) | 284 | static ssize_t fw_show_ne_tlabels_free(struct device *dev, struct device_attribute *attr, char *buf) |
285 | { | 285 | { |
286 | struct node_entry *ne = container_of(dev, struct node_entry, device); | 286 | struct node_entry *ne = container_of(dev, struct node_entry, device); |
287 | return sprintf(buf, "%d\n", atomic_read(&ne->tpool->count.count) + 1); | 287 | return sprintf(buf, "%d\n", atomic_read(&ne->tpool->count.count) + 1); |
@@ -289,7 +289,7 @@ static ssize_t fw_show_ne_tlabels_free(struct device *dev, char *buf) | |||
289 | static DEVICE_ATTR(tlabels_free,S_IRUGO,fw_show_ne_tlabels_free,NULL); | 289 | static DEVICE_ATTR(tlabels_free,S_IRUGO,fw_show_ne_tlabels_free,NULL); |
290 | 290 | ||
291 | 291 | ||
292 | static ssize_t fw_show_ne_tlabels_allocations(struct device *dev, char *buf) | 292 | static ssize_t fw_show_ne_tlabels_allocations(struct device *dev, struct device_attribute *attr, char *buf) |
293 | { | 293 | { |
294 | struct node_entry *ne = container_of(dev, struct node_entry, device); | 294 | struct node_entry *ne = container_of(dev, struct node_entry, device); |
295 | return sprintf(buf, "%u\n", ne->tpool->allocations); | 295 | return sprintf(buf, "%u\n", ne->tpool->allocations); |
@@ -297,7 +297,7 @@ static ssize_t fw_show_ne_tlabels_allocations(struct device *dev, char *buf) | |||
297 | static DEVICE_ATTR(tlabels_allocations,S_IRUGO,fw_show_ne_tlabels_allocations,NULL); | 297 | static DEVICE_ATTR(tlabels_allocations,S_IRUGO,fw_show_ne_tlabels_allocations,NULL); |
298 | 298 | ||
299 | 299 | ||
300 | static ssize_t fw_show_ne_tlabels_mask(struct device *dev, char *buf) | 300 | static ssize_t fw_show_ne_tlabels_mask(struct device *dev, struct device_attribute *attr, char *buf) |
301 | { | 301 | { |
302 | struct node_entry *ne = container_of(dev, struct node_entry, device); | 302 | struct node_entry *ne = container_of(dev, struct node_entry, device); |
303 | #if (BITS_PER_LONG <= 32) | 303 | #if (BITS_PER_LONG <= 32) |
@@ -309,7 +309,7 @@ static ssize_t fw_show_ne_tlabels_mask(struct device *dev, char *buf) | |||
309 | static DEVICE_ATTR(tlabels_mask, S_IRUGO, fw_show_ne_tlabels_mask, NULL); | 309 | static DEVICE_ATTR(tlabels_mask, S_IRUGO, fw_show_ne_tlabels_mask, NULL); |
310 | 310 | ||
311 | 311 | ||
312 | static ssize_t fw_set_ignore_driver(struct device *dev, const char *buf, size_t count) | 312 | static ssize_t fw_set_ignore_driver(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
313 | { | 313 | { |
314 | struct unit_directory *ud = container_of(dev, struct unit_directory, device); | 314 | struct unit_directory *ud = container_of(dev, struct unit_directory, device); |
315 | int state = simple_strtoul(buf, NULL, 10); | 315 | int state = simple_strtoul(buf, NULL, 10); |
@@ -324,7 +324,7 @@ static ssize_t fw_set_ignore_driver(struct device *dev, const char *buf, size_t | |||
324 | 324 | ||
325 | return count; | 325 | return count; |
326 | } | 326 | } |
327 | static ssize_t fw_get_ignore_driver(struct device *dev, char *buf) | 327 | static ssize_t fw_get_ignore_driver(struct device *dev, struct device_attribute *attr, char *buf) |
328 | { | 328 | { |
329 | struct unit_directory *ud = container_of(dev, struct unit_directory, device); | 329 | struct unit_directory *ud = container_of(dev, struct unit_directory, device); |
330 | 330 | ||
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index 2bae300aad46..32368f3428ec 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
@@ -2648,7 +2648,7 @@ static const char *sbp2scsi_info (struct Scsi_Host *host) | |||
2648 | return "SCSI emulation for IEEE-1394 SBP-2 Devices"; | 2648 | return "SCSI emulation for IEEE-1394 SBP-2 Devices"; |
2649 | } | 2649 | } |
2650 | 2650 | ||
2651 | static ssize_t sbp2_sysfs_ieee1394_id_show(struct device *dev, char *buf) | 2651 | static ssize_t sbp2_sysfs_ieee1394_id_show(struct device *dev, struct device_attribute *attr, char *buf) |
2652 | { | 2652 | { |
2653 | struct scsi_device *sdev; | 2653 | struct scsi_device *sdev; |
2654 | struct scsi_id_instance_data *scsi_id; | 2654 | struct scsi_id_instance_data *scsi_id; |
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index f20c3f23388b..9b8ff396e6f8 100644 --- a/drivers/input/gameport/gameport.c +++ b/drivers/input/gameport/gameport.c | |||
@@ -453,13 +453,13 @@ static int gameport_thread(void *nothing) | |||
453 | * Gameport port operations | 453 | * Gameport port operations |
454 | */ | 454 | */ |
455 | 455 | ||
456 | static ssize_t gameport_show_description(struct device *dev, char *buf) | 456 | static ssize_t gameport_show_description(struct device *dev, struct device_attribute *attr, char *buf) |
457 | { | 457 | { |
458 | struct gameport *gameport = to_gameport_port(dev); | 458 | struct gameport *gameport = to_gameport_port(dev); |
459 | return sprintf(buf, "%s\n", gameport->name); | 459 | return sprintf(buf, "%s\n", gameport->name); |
460 | } | 460 | } |
461 | 461 | ||
462 | static ssize_t gameport_rebind_driver(struct device *dev, const char *buf, size_t count) | 462 | static ssize_t gameport_rebind_driver(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
463 | { | 463 | { |
464 | struct gameport *gameport = to_gameport_port(dev); | 464 | struct gameport *gameport = to_gameport_port(dev); |
465 | struct device_driver *drv; | 465 | struct device_driver *drv; |
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index 48fdf1e517cf..82fad9a23ace 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c | |||
@@ -219,11 +219,11 @@ static ssize_t atkbd_attr_set_helper(struct device *dev, const char *buf, size_t | |||
219 | #define ATKBD_DEFINE_ATTR(_name) \ | 219 | #define ATKBD_DEFINE_ATTR(_name) \ |
220 | static ssize_t atkbd_show_##_name(struct atkbd *, char *); \ | 220 | static ssize_t atkbd_show_##_name(struct atkbd *, char *); \ |
221 | static ssize_t atkbd_set_##_name(struct atkbd *, const char *, size_t); \ | 221 | static ssize_t atkbd_set_##_name(struct atkbd *, const char *, size_t); \ |
222 | static ssize_t atkbd_do_show_##_name(struct device *d, char *b) \ | 222 | static ssize_t atkbd_do_show_##_name(struct device *d, struct device_attribute *attr, char *b) \ |
223 | { \ | 223 | { \ |
224 | return atkbd_attr_show_helper(d, b, atkbd_show_##_name); \ | 224 | return atkbd_attr_show_helper(d, b, atkbd_show_##_name); \ |
225 | } \ | 225 | } \ |
226 | static ssize_t atkbd_do_set_##_name(struct device *d, const char *b, size_t s) \ | 226 | static ssize_t atkbd_do_set_##_name(struct device *d, struct device_attribute *attr, const char *b, size_t s) \ |
227 | { \ | 227 | { \ |
228 | return atkbd_attr_set_helper(d, b, s, atkbd_set_##_name); \ | 228 | return atkbd_attr_set_helper(d, b, s, atkbd_set_##_name); \ |
229 | } \ | 229 | } \ |
diff --git a/drivers/input/mouse/psmouse.h b/drivers/input/mouse/psmouse.h index bda5b065d03c..79e17a0c4664 100644 --- a/drivers/input/mouse/psmouse.h +++ b/drivers/input/mouse/psmouse.h | |||
@@ -91,11 +91,11 @@ ssize_t psmouse_attr_set_helper(struct device *dev, const char *buf, size_t coun | |||
91 | #define PSMOUSE_DEFINE_ATTR(_name) \ | 91 | #define PSMOUSE_DEFINE_ATTR(_name) \ |
92 | static ssize_t psmouse_attr_show_##_name(struct psmouse *, char *); \ | 92 | static ssize_t psmouse_attr_show_##_name(struct psmouse *, char *); \ |
93 | static ssize_t psmouse_attr_set_##_name(struct psmouse *, const char *, size_t);\ | 93 | static ssize_t psmouse_attr_set_##_name(struct psmouse *, const char *, size_t);\ |
94 | static ssize_t psmouse_do_show_##_name(struct device *d, char *b) \ | 94 | static ssize_t psmouse_do_show_##_name(struct device *d, struct device_attribute *attr, char *b) \ |
95 | { \ | 95 | { \ |
96 | return psmouse_attr_show_helper(d, b, psmouse_attr_show_##_name); \ | 96 | return psmouse_attr_show_helper(d, b, psmouse_attr_show_##_name); \ |
97 | } \ | 97 | } \ |
98 | static ssize_t psmouse_do_set_##_name(struct device *d, const char *b, size_t s)\ | 98 | static ssize_t psmouse_do_set_##_name(struct device *d, struct device_attribute *attr, const char *b, size_t s)\ |
99 | { \ | 99 | { \ |
100 | return psmouse_attr_set_helper(d, b, s, psmouse_attr_set_##_name); \ | 100 | return psmouse_attr_set_helper(d, b, s, psmouse_attr_set_##_name); \ |
101 | } \ | 101 | } \ |
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 0beacb77ee18..feab4970406e 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
@@ -358,31 +358,31 @@ static int serio_thread(void *nothing) | |||
358 | * Serio port operations | 358 | * Serio port operations |
359 | */ | 359 | */ |
360 | 360 | ||
361 | static ssize_t serio_show_description(struct device *dev, char *buf) | 361 | static ssize_t serio_show_description(struct device *dev, struct device_attribute *attr, char *buf) |
362 | { | 362 | { |
363 | struct serio *serio = to_serio_port(dev); | 363 | struct serio *serio = to_serio_port(dev); |
364 | return sprintf(buf, "%s\n", serio->name); | 364 | return sprintf(buf, "%s\n", serio->name); |
365 | } | 365 | } |
366 | 366 | ||
367 | static ssize_t serio_show_id_type(struct device *dev, char *buf) | 367 | static ssize_t serio_show_id_type(struct device *dev, struct device_attribute *attr, char *buf) |
368 | { | 368 | { |
369 | struct serio *serio = to_serio_port(dev); | 369 | struct serio *serio = to_serio_port(dev); |
370 | return sprintf(buf, "%02x\n", serio->id.type); | 370 | return sprintf(buf, "%02x\n", serio->id.type); |
371 | } | 371 | } |
372 | 372 | ||
373 | static ssize_t serio_show_id_proto(struct device *dev, char *buf) | 373 | static ssize_t serio_show_id_proto(struct device *dev, struct device_attribute *attr, char *buf) |
374 | { | 374 | { |
375 | struct serio *serio = to_serio_port(dev); | 375 | struct serio *serio = to_serio_port(dev); |
376 | return sprintf(buf, "%02x\n", serio->id.proto); | 376 | return sprintf(buf, "%02x\n", serio->id.proto); |
377 | } | 377 | } |
378 | 378 | ||
379 | static ssize_t serio_show_id_id(struct device *dev, char *buf) | 379 | static ssize_t serio_show_id_id(struct device *dev, struct device_attribute *attr, char *buf) |
380 | { | 380 | { |
381 | struct serio *serio = to_serio_port(dev); | 381 | struct serio *serio = to_serio_port(dev); |
382 | return sprintf(buf, "%02x\n", serio->id.id); | 382 | return sprintf(buf, "%02x\n", serio->id.id); |
383 | } | 383 | } |
384 | 384 | ||
385 | static ssize_t serio_show_id_extra(struct device *dev, char *buf) | 385 | static ssize_t serio_show_id_extra(struct device *dev, struct device_attribute *attr, char *buf) |
386 | { | 386 | { |
387 | struct serio *serio = to_serio_port(dev); | 387 | struct serio *serio = to_serio_port(dev); |
388 | return sprintf(buf, "%02x\n", serio->id.extra); | 388 | return sprintf(buf, "%02x\n", serio->id.extra); |
@@ -406,7 +406,7 @@ static struct attribute_group serio_id_attr_group = { | |||
406 | .attrs = serio_device_id_attrs, | 406 | .attrs = serio_device_id_attrs, |
407 | }; | 407 | }; |
408 | 408 | ||
409 | static ssize_t serio_rebind_driver(struct device *dev, const char *buf, size_t count) | 409 | static ssize_t serio_rebind_driver(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
410 | { | 410 | { |
411 | struct serio *serio = to_serio_port(dev); | 411 | struct serio *serio = to_serio_port(dev); |
412 | struct device_driver *drv; | 412 | struct device_driver *drv; |
@@ -437,13 +437,13 @@ static ssize_t serio_rebind_driver(struct device *dev, const char *buf, size_t c | |||
437 | return retval; | 437 | return retval; |
438 | } | 438 | } |
439 | 439 | ||
440 | static ssize_t serio_show_bind_mode(struct device *dev, char *buf) | 440 | static ssize_t serio_show_bind_mode(struct device *dev, struct device_attribute *attr, char *buf) |
441 | { | 441 | { |
442 | struct serio *serio = to_serio_port(dev); | 442 | struct serio *serio = to_serio_port(dev); |
443 | return sprintf(buf, "%s\n", serio->manual_bind ? "manual" : "auto"); | 443 | return sprintf(buf, "%s\n", serio->manual_bind ? "manual" : "auto"); |
444 | } | 444 | } |
445 | 445 | ||
446 | static ssize_t serio_set_bind_mode(struct device *dev, const char *buf, size_t count) | 446 | static ssize_t serio_set_bind_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
447 | { | 447 | { |
448 | struct serio *serio = to_serio_port(dev); | 448 | struct serio *serio = to_serio_port(dev); |
449 | int retval; | 449 | int retval; |
diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index d09308f30960..5ba190ce14a0 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c | |||
@@ -455,21 +455,22 @@ static int attach_one_thermostat(struct i2c_adapter *adapter, int addr, | |||
455 | * pass around to the attribute functions, so we don't really have | 455 | * pass around to the attribute functions, so we don't really have |
456 | * choice but implement a bunch of them... | 456 | * choice but implement a bunch of them... |
457 | * | 457 | * |
458 | * FIXME, it does now... | ||
458 | */ | 459 | */ |
459 | #define BUILD_SHOW_FUNC_INT(name, data) \ | 460 | #define BUILD_SHOW_FUNC_INT(name, data) \ |
460 | static ssize_t show_##name(struct device *dev, char *buf) \ | 461 | static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
461 | { \ | 462 | { \ |
462 | return sprintf(buf, "%d\n", data); \ | 463 | return sprintf(buf, "%d\n", data); \ |
463 | } | 464 | } |
464 | 465 | ||
465 | #define BUILD_SHOW_FUNC_STR(name, data) \ | 466 | #define BUILD_SHOW_FUNC_STR(name, data) \ |
466 | static ssize_t show_##name(struct device *dev, char *buf) \ | 467 | static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
467 | { \ | 468 | { \ |
468 | return sprintf(buf, "%s\n", data); \ | 469 | return sprintf(buf, "%s\n", data); \ |
469 | } | 470 | } |
470 | 471 | ||
471 | #define BUILD_SHOW_FUNC_FAN(name, data) \ | 472 | #define BUILD_SHOW_FUNC_FAN(name, data) \ |
472 | static ssize_t show_##name(struct device *dev, char *buf) \ | 473 | static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
473 | { \ | 474 | { \ |
474 | return sprintf(buf, "%d (%d rpm)\n", \ | 475 | return sprintf(buf, "%d (%d rpm)\n", \ |
475 | thermostat->last_speed[data], \ | 476 | thermostat->last_speed[data], \ |
@@ -478,7 +479,7 @@ static ssize_t show_##name(struct device *dev, char *buf) \ | |||
478 | } | 479 | } |
479 | 480 | ||
480 | #define BUILD_STORE_FUNC_DEG(name, data) \ | 481 | #define BUILD_STORE_FUNC_DEG(name, data) \ |
481 | static ssize_t store_##name(struct device *dev, const char *buf, size_t n) \ | 482 | static ssize_t store_##name(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) \ |
482 | { \ | 483 | { \ |
483 | int val; \ | 484 | int val; \ |
484 | int i; \ | 485 | int i; \ |
@@ -491,7 +492,7 @@ static ssize_t store_##name(struct device *dev, const char *buf, size_t n) \ | |||
491 | } | 492 | } |
492 | 493 | ||
493 | #define BUILD_STORE_FUNC_INT(name, data) \ | 494 | #define BUILD_STORE_FUNC_INT(name, data) \ |
494 | static ssize_t store_##name(struct device *dev, const char *buf, size_t n) \ | 495 | static ssize_t store_##name(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) \ |
495 | { \ | 496 | { \ |
496 | u32 val; \ | 497 | u32 val; \ |
497 | val = simple_strtoul(buf, NULL, 10); \ | 498 | val = simple_strtoul(buf, NULL, 10); \ |
diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh/therm_pm72.c index 82336a5a5474..feb4e2413858 100644 --- a/drivers/macintosh/therm_pm72.c +++ b/drivers/macintosh/therm_pm72.c | |||
@@ -685,7 +685,7 @@ static void fetch_cpu_pumps_minmax(void) | |||
685 | * the input twice... I accept patches :) | 685 | * the input twice... I accept patches :) |
686 | */ | 686 | */ |
687 | #define BUILD_SHOW_FUNC_FIX(name, data) \ | 687 | #define BUILD_SHOW_FUNC_FIX(name, data) \ |
688 | static ssize_t show_##name(struct device *dev, char *buf) \ | 688 | static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
689 | { \ | 689 | { \ |
690 | ssize_t r; \ | 690 | ssize_t r; \ |
691 | down(&driver_lock); \ | 691 | down(&driver_lock); \ |
@@ -694,7 +694,7 @@ static ssize_t show_##name(struct device *dev, char *buf) \ | |||
694 | return r; \ | 694 | return r; \ |
695 | } | 695 | } |
696 | #define BUILD_SHOW_FUNC_INT(name, data) \ | 696 | #define BUILD_SHOW_FUNC_INT(name, data) \ |
697 | static ssize_t show_##name(struct device *dev, char *buf) \ | 697 | static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \ |
698 | { \ | 698 | { \ |
699 | return sprintf(buf, "%d", data); \ | 699 | return sprintf(buf, "%d", data); \ |
700 | } | 700 | } |
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index c153699d0f84..0bdb47f08c2a 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c | |||
@@ -107,13 +107,13 @@ print_temp( const char *s, int temp ) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | static ssize_t | 109 | static ssize_t |
110 | show_cpu_temperature( struct device *dev, char *buf ) | 110 | show_cpu_temperature( struct device *dev, struct device_attribute *attr, char *buf ) |
111 | { | 111 | { |
112 | return sprintf(buf, "%d.%d\n", x.temp>>8, (x.temp & 255)*10/256 ); | 112 | return sprintf(buf, "%d.%d\n", x.temp>>8, (x.temp & 255)*10/256 ); |
113 | } | 113 | } |
114 | 114 | ||
115 | static ssize_t | 115 | static ssize_t |
116 | show_case_temperature( struct device *dev, char *buf ) | 116 | show_case_temperature( struct device *dev, struct device_attribute *attr, char *buf ) |
117 | { | 117 | { |
118 | return sprintf(buf, "%d.%d\n", x.casetemp>>8, (x.casetemp & 255)*10/256 ); | 118 | return sprintf(buf, "%d.%d\n", x.casetemp>>8, (x.casetemp & 255)*10/256 ); |
119 | } | 119 | } |
diff --git a/drivers/mca/mca-bus.c b/drivers/mca/mca-bus.c index ff9be67c2a15..09baa43b2599 100644 --- a/drivers/mca/mca-bus.c +++ b/drivers/mca/mca-bus.c | |||
@@ -69,7 +69,7 @@ struct bus_type mca_bus_type = { | |||
69 | }; | 69 | }; |
70 | EXPORT_SYMBOL (mca_bus_type); | 70 | EXPORT_SYMBOL (mca_bus_type); |
71 | 71 | ||
72 | static ssize_t mca_show_pos_id(struct device *dev, char *buf) | 72 | static ssize_t mca_show_pos_id(struct device *dev, struct device_attribute *attr, char *buf) |
73 | { | 73 | { |
74 | /* four digits, \n and trailing \0 */ | 74 | /* four digits, \n and trailing \0 */ |
75 | struct mca_device *mca_dev = to_mca_device(dev); | 75 | struct mca_device *mca_dev = to_mca_device(dev); |
@@ -81,7 +81,7 @@ static ssize_t mca_show_pos_id(struct device *dev, char *buf) | |||
81 | len = sprintf(buf, "none\n"); | 81 | len = sprintf(buf, "none\n"); |
82 | return len; | 82 | return len; |
83 | } | 83 | } |
84 | static ssize_t mca_show_pos(struct device *dev, char *buf) | 84 | static ssize_t mca_show_pos(struct device *dev, struct device_attribute *attr, char *buf) |
85 | { | 85 | { |
86 | /* enough for 8 two byte hex chars plus space and new line */ | 86 | /* enough for 8 two byte hex chars plus space and new line */ |
87 | int j, len=0; | 87 | int j, len=0; |
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index 48ff314cdfbf..a0078ae5b9b8 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -2338,7 +2338,7 @@ slave_configure_exit: | |||
2338 | } | 2338 | } |
2339 | 2339 | ||
2340 | ssize_t | 2340 | ssize_t |
2341 | mptscsih_store_queue_depth(struct device *dev, const char *buf, size_t count) | 2341 | mptscsih_store_queue_depth(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
2342 | { | 2342 | { |
2343 | int depth; | 2343 | int depth; |
2344 | struct scsi_device *sdev = to_scsi_device(dev); | 2344 | struct scsi_device *sdev = to_scsi_device(dev); |
diff --git a/drivers/message/fusion/mptscsih.h b/drivers/message/fusion/mptscsih.h index 9f519836effa..d73aec33e16a 100644 --- a/drivers/message/fusion/mptscsih.h +++ b/drivers/message/fusion/mptscsih.h | |||
@@ -103,5 +103,5 @@ extern int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_F | |||
103 | extern int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); | 103 | extern int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r); |
104 | extern int mptscsih_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply); | 104 | extern int mptscsih_event_process(MPT_ADAPTER *ioc, EventNotificationReply_t *pEvReply); |
105 | extern int mptscsih_ioc_reset(MPT_ADAPTER *ioc, int post_reset); | 105 | extern int mptscsih_ioc_reset(MPT_ADAPTER *ioc, int post_reset); |
106 | extern ssize_t mptscsih_store_queue_depth(struct device *dev, const char *buf, size_t count); | 106 | extern ssize_t mptscsih_store_queue_depth(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); |
107 | extern void mptscsih_timer_expired(unsigned long data); | 107 | extern void mptscsih_timer_expired(unsigned long data); |
diff --git a/drivers/mmc/mmc_sysfs.c b/drivers/mmc/mmc_sysfs.c index 29a56e9cd5b3..5556cd3b5559 100644 --- a/drivers/mmc/mmc_sysfs.c +++ b/drivers/mmc/mmc_sysfs.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #define to_mmc_driver(d) container_of(d, struct mmc_driver, drv) | 22 | #define to_mmc_driver(d) container_of(d, struct mmc_driver, drv) |
23 | 23 | ||
24 | #define MMC_ATTR(name, fmt, args...) \ | 24 | #define MMC_ATTR(name, fmt, args...) \ |
25 | static ssize_t mmc_##name##_show (struct device *dev, char *buf) \ | 25 | static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \ |
26 | { \ | 26 | { \ |
27 | struct mmc_card *card = dev_to_mmc_card(dev); \ | 27 | struct mmc_card *card = dev_to_mmc_card(dev); \ |
28 | return sprintf(buf, fmt, args); \ | 28 | return sprintf(buf, fmt, args); \ |
diff --git a/drivers/pci/hotplug/cpqphp_sysfs.c b/drivers/pci/hotplug/cpqphp_sysfs.c index 41c7971d06c5..4c11048ad51b 100644 --- a/drivers/pci/hotplug/cpqphp_sysfs.c +++ b/drivers/pci/hotplug/cpqphp_sysfs.c | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | /* A few routines that create sysfs entries for the hot plug controller */ | 39 | /* A few routines that create sysfs entries for the hot plug controller */ |
40 | 40 | ||
41 | static ssize_t show_ctrl (struct device *dev, char *buf) | 41 | static ssize_t show_ctrl (struct device *dev, struct device_attribute *attr, char *buf) |
42 | { | 42 | { |
43 | struct pci_dev *pci_dev; | 43 | struct pci_dev *pci_dev; |
44 | struct controller *ctrl; | 44 | struct controller *ctrl; |
@@ -82,7 +82,7 @@ static ssize_t show_ctrl (struct device *dev, char *buf) | |||
82 | } | 82 | } |
83 | static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL); | 83 | static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL); |
84 | 84 | ||
85 | static ssize_t show_dev (struct device *dev, char *buf) | 85 | static ssize_t show_dev (struct device *dev, struct device_attribute *attr, char *buf) |
86 | { | 86 | { |
87 | struct pci_dev *pci_dev; | 87 | struct pci_dev *pci_dev; |
88 | struct controller *ctrl; | 88 | struct controller *ctrl; |
diff --git a/drivers/pci/hotplug/shpchp_sysfs.c b/drivers/pci/hotplug/shpchp_sysfs.c index 9a1ee132d12c..c9445ebda5c7 100644 --- a/drivers/pci/hotplug/shpchp_sysfs.c +++ b/drivers/pci/hotplug/shpchp_sysfs.c | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | /* A few routines that create sysfs entries for the hot plug controller */ | 39 | /* A few routines that create sysfs entries for the hot plug controller */ |
40 | 40 | ||
41 | static ssize_t show_ctrl (struct device *dev, char *buf) | 41 | static ssize_t show_ctrl (struct device *dev, struct device_attribute *attr, char *buf) |
42 | { | 42 | { |
43 | struct pci_dev *pci_dev; | 43 | struct pci_dev *pci_dev; |
44 | struct controller *ctrl; | 44 | struct controller *ctrl; |
@@ -82,7 +82,7 @@ static ssize_t show_ctrl (struct device *dev, char *buf) | |||
82 | } | 82 | } |
83 | static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL); | 83 | static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL); |
84 | 84 | ||
85 | static ssize_t show_dev (struct device *dev, char *buf) | 85 | static ssize_t show_dev (struct device *dev, struct device_attribute *attr, char *buf) |
86 | { | 86 | { |
87 | struct pci_dev *pci_dev; | 87 | struct pci_dev *pci_dev; |
88 | struct controller *ctrl; | 88 | struct controller *ctrl; |
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index e8aad151175f..8b79609a3a03 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -29,7 +29,7 @@ static int sysfs_initialized; /* = 0 */ | |||
29 | /* show configuration fields */ | 29 | /* show configuration fields */ |
30 | #define pci_config_attr(field, format_string) \ | 30 | #define pci_config_attr(field, format_string) \ |
31 | static ssize_t \ | 31 | static ssize_t \ |
32 | field##_show(struct device *dev, char *buf) \ | 32 | field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ |
33 | { \ | 33 | { \ |
34 | struct pci_dev *pdev; \ | 34 | struct pci_dev *pdev; \ |
35 | \ | 35 | \ |
@@ -44,7 +44,7 @@ pci_config_attr(subsystem_device, "0x%04x\n"); | |||
44 | pci_config_attr(class, "0x%06x\n"); | 44 | pci_config_attr(class, "0x%06x\n"); |
45 | pci_config_attr(irq, "%u\n"); | 45 | pci_config_attr(irq, "%u\n"); |
46 | 46 | ||
47 | static ssize_t local_cpus_show(struct device *dev, char *buf) | 47 | static ssize_t local_cpus_show(struct device *dev, struct device_attribute *attr, char *buf) |
48 | { | 48 | { |
49 | cpumask_t mask = pcibus_to_cpumask(to_pci_dev(dev)->bus); | 49 | cpumask_t mask = pcibus_to_cpumask(to_pci_dev(dev)->bus); |
50 | int len = cpumask_scnprintf(buf, PAGE_SIZE-2, mask); | 50 | int len = cpumask_scnprintf(buf, PAGE_SIZE-2, mask); |
@@ -54,7 +54,7 @@ static ssize_t local_cpus_show(struct device *dev, char *buf) | |||
54 | 54 | ||
55 | /* show resources */ | 55 | /* show resources */ |
56 | static ssize_t | 56 | static ssize_t |
57 | resource_show(struct device * dev, char * buf) | 57 | resource_show(struct device * dev, struct device_attribute *attr, char * buf) |
58 | { | 58 | { |
59 | struct pci_dev * pci_dev = to_pci_dev(dev); | 59 | struct pci_dev * pci_dev = to_pci_dev(dev); |
60 | char * str = buf; | 60 | char * str = buf; |
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index c4ade288c5da..569e55feecfd 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -604,14 +604,14 @@ static int pcmcia_bus_match(struct device * dev, struct device_driver * drv) { | |||
604 | /************************ per-device sysfs output ***************************/ | 604 | /************************ per-device sysfs output ***************************/ |
605 | 605 | ||
606 | #define pcmcia_device_attr(field, test, format) \ | 606 | #define pcmcia_device_attr(field, test, format) \ |
607 | static ssize_t field##_show (struct device *dev, char *buf) \ | 607 | static ssize_t field##_show (struct device *dev, struct device_attribute *attr, char *buf) \ |
608 | { \ | 608 | { \ |
609 | struct pcmcia_device *p_dev = to_pcmcia_dev(dev); \ | 609 | struct pcmcia_device *p_dev = to_pcmcia_dev(dev); \ |
610 | return p_dev->test ? sprintf (buf, format, p_dev->field) : -ENODEV; \ | 610 | return p_dev->test ? sprintf (buf, format, p_dev->field) : -ENODEV; \ |
611 | } | 611 | } |
612 | 612 | ||
613 | #define pcmcia_device_stringattr(name, field) \ | 613 | #define pcmcia_device_stringattr(name, field) \ |
614 | static ssize_t name##_show (struct device *dev, char *buf) \ | 614 | static ssize_t name##_show (struct device *dev, struct device_attribute *attr, char *buf) \ |
615 | { \ | 615 | { \ |
616 | struct pcmcia_device *p_dev = to_pcmcia_dev(dev); \ | 616 | struct pcmcia_device *p_dev = to_pcmcia_dev(dev); \ |
617 | return p_dev->field ? sprintf (buf, "%s\n", p_dev->field) : -ENODEV; \ | 617 | return p_dev->field ? sprintf (buf, "%s\n", p_dev->field) : -ENODEV; \ |
diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c index 97eeecfaef1b..3252662958d3 100644 --- a/drivers/pnp/card.c +++ b/drivers/pnp/card.c | |||
@@ -140,7 +140,7 @@ static void pnp_release_card(struct device *dmdev) | |||
140 | } | 140 | } |
141 | 141 | ||
142 | 142 | ||
143 | static ssize_t pnp_show_card_name(struct device *dmdev, char *buf) | 143 | static ssize_t pnp_show_card_name(struct device *dmdev, struct device_attribute *attr, char *buf) |
144 | { | 144 | { |
145 | char *str = buf; | 145 | char *str = buf; |
146 | struct pnp_card *card = to_pnp_card(dmdev); | 146 | struct pnp_card *card = to_pnp_card(dmdev); |
@@ -150,7 +150,7 @@ static ssize_t pnp_show_card_name(struct device *dmdev, char *buf) | |||
150 | 150 | ||
151 | static DEVICE_ATTR(name,S_IRUGO,pnp_show_card_name,NULL); | 151 | static DEVICE_ATTR(name,S_IRUGO,pnp_show_card_name,NULL); |
152 | 152 | ||
153 | static ssize_t pnp_show_card_ids(struct device *dmdev, char *buf) | 153 | static ssize_t pnp_show_card_ids(struct device *dmdev, struct device_attribute *attr, char *buf) |
154 | { | 154 | { |
155 | char *str = buf; | 155 | char *str = buf; |
156 | struct pnp_card *card = to_pnp_card(dmdev); | 156 | struct pnp_card *card = to_pnp_card(dmdev); |
diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c index 53fac8ba5d5c..a2d8ce7fef9c 100644 --- a/drivers/pnp/interface.c +++ b/drivers/pnp/interface.c | |||
@@ -205,7 +205,7 @@ static void pnp_print_option(pnp_info_buffer_t *buffer, char *space, | |||
205 | } | 205 | } |
206 | 206 | ||
207 | 207 | ||
208 | static ssize_t pnp_show_options(struct device *dmdev, char *buf) | 208 | static ssize_t pnp_show_options(struct device *dmdev, struct device_attribute *attr, char *buf) |
209 | { | 209 | { |
210 | struct pnp_dev *dev = to_pnp_dev(dmdev); | 210 | struct pnp_dev *dev = to_pnp_dev(dmdev); |
211 | struct pnp_option * independent = dev->independent; | 211 | struct pnp_option * independent = dev->independent; |
@@ -236,7 +236,7 @@ static ssize_t pnp_show_options(struct device *dmdev, char *buf) | |||
236 | static DEVICE_ATTR(options,S_IRUGO,pnp_show_options,NULL); | 236 | static DEVICE_ATTR(options,S_IRUGO,pnp_show_options,NULL); |
237 | 237 | ||
238 | 238 | ||
239 | static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf) | 239 | static ssize_t pnp_show_current_resources(struct device *dmdev, struct device_attribute *attr, char *buf) |
240 | { | 240 | { |
241 | struct pnp_dev *dev = to_pnp_dev(dmdev); | 241 | struct pnp_dev *dev = to_pnp_dev(dmdev); |
242 | int i, ret; | 242 | int i, ret; |
@@ -308,7 +308,7 @@ static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf) | |||
308 | extern struct semaphore pnp_res_mutex; | 308 | extern struct semaphore pnp_res_mutex; |
309 | 309 | ||
310 | static ssize_t | 310 | static ssize_t |
311 | pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count) | 311 | pnp_set_current_resources(struct device * dmdev, struct device_attribute *attr, const char * ubuf, size_t count) |
312 | { | 312 | { |
313 | struct pnp_dev *dev = to_pnp_dev(dmdev); | 313 | struct pnp_dev *dev = to_pnp_dev(dmdev); |
314 | char *buf = (void *)ubuf; | 314 | char *buf = (void *)ubuf; |
@@ -444,7 +444,7 @@ pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count | |||
444 | static DEVICE_ATTR(resources,S_IRUGO | S_IWUSR, | 444 | static DEVICE_ATTR(resources,S_IRUGO | S_IWUSR, |
445 | pnp_show_current_resources,pnp_set_current_resources); | 445 | pnp_show_current_resources,pnp_set_current_resources); |
446 | 446 | ||
447 | static ssize_t pnp_show_current_ids(struct device *dmdev, char *buf) | 447 | static ssize_t pnp_show_current_ids(struct device *dmdev, struct device_attribute *attr, char *buf) |
448 | { | 448 | { |
449 | char *str = buf; | 449 | char *str = buf; |
450 | struct pnp_dev *dev = to_pnp_dev(dmdev); | 450 | struct pnp_dev *dev = to_pnp_dev(dmdev); |
diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c index 1aedc48e5f85..d948566bb24a 100644 --- a/drivers/s390/block/dasd_devmap.c +++ b/drivers/s390/block/dasd_devmap.c | |||
@@ -615,7 +615,7 @@ dasd_device_from_cdev(struct ccw_device *cdev) | |||
615 | * readonly controls the readonly status of a dasd | 615 | * readonly controls the readonly status of a dasd |
616 | */ | 616 | */ |
617 | static ssize_t | 617 | static ssize_t |
618 | dasd_ro_show(struct device *dev, char *buf) | 618 | dasd_ro_show(struct device *dev, struct device_attribute *attr, char *buf) |
619 | { | 619 | { |
620 | struct dasd_devmap *devmap; | 620 | struct dasd_devmap *devmap; |
621 | int ro_flag; | 621 | int ro_flag; |
@@ -629,7 +629,7 @@ dasd_ro_show(struct device *dev, char *buf) | |||
629 | } | 629 | } |
630 | 630 | ||
631 | static ssize_t | 631 | static ssize_t |
632 | dasd_ro_store(struct device *dev, const char *buf, size_t count) | 632 | dasd_ro_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
633 | { | 633 | { |
634 | struct dasd_devmap *devmap; | 634 | struct dasd_devmap *devmap; |
635 | int ro_flag; | 635 | int ro_flag; |
@@ -656,7 +656,7 @@ static DEVICE_ATTR(readonly, 0644, dasd_ro_show, dasd_ro_store); | |||
656 | * to talk to the device | 656 | * to talk to the device |
657 | */ | 657 | */ |
658 | static ssize_t | 658 | static ssize_t |
659 | dasd_use_diag_show(struct device *dev, char *buf) | 659 | dasd_use_diag_show(struct device *dev, struct device_attribute *attr, char *buf) |
660 | { | 660 | { |
661 | struct dasd_devmap *devmap; | 661 | struct dasd_devmap *devmap; |
662 | int use_diag; | 662 | int use_diag; |
@@ -670,7 +670,7 @@ dasd_use_diag_show(struct device *dev, char *buf) | |||
670 | } | 670 | } |
671 | 671 | ||
672 | static ssize_t | 672 | static ssize_t |
673 | dasd_use_diag_store(struct device *dev, const char *buf, size_t count) | 673 | dasd_use_diag_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
674 | { | 674 | { |
675 | struct dasd_devmap *devmap; | 675 | struct dasd_devmap *devmap; |
676 | ssize_t rc; | 676 | ssize_t rc; |
@@ -698,7 +698,7 @@ static | |||
698 | DEVICE_ATTR(use_diag, 0644, dasd_use_diag_show, dasd_use_diag_store); | 698 | DEVICE_ATTR(use_diag, 0644, dasd_use_diag_show, dasd_use_diag_store); |
699 | 699 | ||
700 | static ssize_t | 700 | static ssize_t |
701 | dasd_discipline_show(struct device *dev, char *buf) | 701 | dasd_discipline_show(struct device *dev, struct device_attribute *attr, char *buf) |
702 | { | 702 | { |
703 | struct dasd_devmap *devmap; | 703 | struct dasd_devmap *devmap; |
704 | char *dname; | 704 | char *dname; |
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c index a66b17b65296..16ab8d363ac6 100644 --- a/drivers/s390/block/dcssblk.c +++ b/drivers/s390/block/dcssblk.c | |||
@@ -45,16 +45,16 @@ static struct block_device_operations dcssblk_devops = { | |||
45 | .release = dcssblk_release, | 45 | .release = dcssblk_release, |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static ssize_t dcssblk_add_store(struct device * dev, const char * buf, | 48 | static ssize_t dcssblk_add_store(struct device * dev, struct device_attribute *attr, const char * buf, |
49 | size_t count); | 49 | size_t count); |
50 | static ssize_t dcssblk_remove_store(struct device * dev, const char * buf, | 50 | static ssize_t dcssblk_remove_store(struct device * dev, struct device_attribute *attr, const char * buf, |
51 | size_t count); | 51 | size_t count); |
52 | static ssize_t dcssblk_save_store(struct device * dev, const char * buf, | 52 | static ssize_t dcssblk_save_store(struct device * dev, struct device_attribute *attr, const char * buf, |
53 | size_t count); | 53 | size_t count); |
54 | static ssize_t dcssblk_save_show(struct device *dev, char *buf); | 54 | static ssize_t dcssblk_save_show(struct device *dev, struct device_attribute *attr, char *buf); |
55 | static ssize_t dcssblk_shared_store(struct device * dev, const char * buf, | 55 | static ssize_t dcssblk_shared_store(struct device * dev, struct device_attribute *attr, const char * buf, |
56 | size_t count); | 56 | size_t count); |
57 | static ssize_t dcssblk_shared_show(struct device *dev, char *buf); | 57 | static ssize_t dcssblk_shared_show(struct device *dev, struct device_attribute *attr, char *buf); |
58 | 58 | ||
59 | static DEVICE_ATTR(add, S_IWUSR, NULL, dcssblk_add_store); | 59 | static DEVICE_ATTR(add, S_IWUSR, NULL, dcssblk_add_store); |
60 | static DEVICE_ATTR(remove, S_IWUSR, NULL, dcssblk_remove_store); | 60 | static DEVICE_ATTR(remove, S_IWUSR, NULL, dcssblk_remove_store); |
@@ -195,7 +195,7 @@ dcssblk_segment_warn(int rc, char* seg_name) | |||
195 | * operation (show + store) | 195 | * operation (show + store) |
196 | */ | 196 | */ |
197 | static ssize_t | 197 | static ssize_t |
198 | dcssblk_shared_show(struct device *dev, char *buf) | 198 | dcssblk_shared_show(struct device *dev, struct device_attribute *attr, char *buf) |
199 | { | 199 | { |
200 | struct dcssblk_dev_info *dev_info; | 200 | struct dcssblk_dev_info *dev_info; |
201 | 201 | ||
@@ -204,7 +204,7 @@ dcssblk_shared_show(struct device *dev, char *buf) | |||
204 | } | 204 | } |
205 | 205 | ||
206 | static ssize_t | 206 | static ssize_t |
207 | dcssblk_shared_store(struct device *dev, const char *inbuf, size_t count) | 207 | dcssblk_shared_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) |
208 | { | 208 | { |
209 | struct dcssblk_dev_info *dev_info; | 209 | struct dcssblk_dev_info *dev_info; |
210 | int rc; | 210 | int rc; |
@@ -288,7 +288,7 @@ out: | |||
288 | * (show + store) | 288 | * (show + store) |
289 | */ | 289 | */ |
290 | static ssize_t | 290 | static ssize_t |
291 | dcssblk_save_show(struct device *dev, char *buf) | 291 | dcssblk_save_show(struct device *dev, struct device_attribute *attr, char *buf) |
292 | { | 292 | { |
293 | struct dcssblk_dev_info *dev_info; | 293 | struct dcssblk_dev_info *dev_info; |
294 | 294 | ||
@@ -297,7 +297,7 @@ dcssblk_save_show(struct device *dev, char *buf) | |||
297 | } | 297 | } |
298 | 298 | ||
299 | static ssize_t | 299 | static ssize_t |
300 | dcssblk_save_store(struct device *dev, const char *inbuf, size_t count) | 300 | dcssblk_save_store(struct device *dev, struct device_attribute *attr, const char *inbuf, size_t count) |
301 | { | 301 | { |
302 | struct dcssblk_dev_info *dev_info; | 302 | struct dcssblk_dev_info *dev_info; |
303 | 303 | ||
@@ -343,7 +343,7 @@ dcssblk_save_store(struct device *dev, const char *inbuf, size_t count) | |||
343 | * device attribute for adding devices | 343 | * device attribute for adding devices |
344 | */ | 344 | */ |
345 | static ssize_t | 345 | static ssize_t |
346 | dcssblk_add_store(struct device *dev, const char *buf, size_t count) | 346 | dcssblk_add_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
347 | { | 347 | { |
348 | int rc, i; | 348 | int rc, i; |
349 | struct dcssblk_dev_info *dev_info; | 349 | struct dcssblk_dev_info *dev_info; |
@@ -517,7 +517,7 @@ out_nobuf: | |||
517 | * device attribute for removing devices | 517 | * device attribute for removing devices |
518 | */ | 518 | */ |
519 | static ssize_t | 519 | static ssize_t |
520 | dcssblk_remove_store(struct device *dev, const char *buf, size_t count) | 520 | dcssblk_remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
521 | { | 521 | { |
522 | struct dcssblk_dev_info *dev_info; | 522 | struct dcssblk_dev_info *dev_info; |
523 | int rc, i; | 523 | int rc, i; |