diff options
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/chsc.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c index cbab8d2ce5cf..15b0e6329cf3 100644 --- a/drivers/s390/cio/chsc.c +++ b/drivers/s390/cio/chsc.c | |||
@@ -967,8 +967,8 @@ static struct bin_attribute chp_measurement_attr = { | |||
967 | static void | 967 | static void |
968 | chsc_remove_chp_cmg_attr(struct channel_path *chp) | 968 | chsc_remove_chp_cmg_attr(struct channel_path *chp) |
969 | { | 969 | { |
970 | sysfs_remove_bin_file(&chp->dev.kobj, &chp_measurement_chars_attr); | 970 | device_remove_bin_file(&chp->dev, &chp_measurement_chars_attr); |
971 | sysfs_remove_bin_file(&chp->dev.kobj, &chp_measurement_attr); | 971 | device_remove_bin_file(&chp->dev, &chp_measurement_attr); |
972 | } | 972 | } |
973 | 973 | ||
974 | static int | 974 | static int |
@@ -976,14 +976,12 @@ chsc_add_chp_cmg_attr(struct channel_path *chp) | |||
976 | { | 976 | { |
977 | int ret; | 977 | int ret; |
978 | 978 | ||
979 | ret = sysfs_create_bin_file(&chp->dev.kobj, | 979 | ret = device_create_bin_file(&chp->dev, &chp_measurement_chars_attr); |
980 | &chp_measurement_chars_attr); | ||
981 | if (ret) | 980 | if (ret) |
982 | return ret; | 981 | return ret; |
983 | ret = sysfs_create_bin_file(&chp->dev.kobj, &chp_measurement_attr); | 982 | ret = device_create_bin_file(&chp->dev, &chp_measurement_attr); |
984 | if (ret) | 983 | if (ret) |
985 | sysfs_remove_bin_file(&chp->dev.kobj, | 984 | device_remove_bin_file(&chp->dev, &chp_measurement_chars_attr); |
986 | &chp_measurement_chars_attr); | ||
987 | return ret; | 985 | return ret; |
988 | } | 986 | } |
989 | 987 | ||