summaryrefslogtreecommitdiffstats
path: root/drivers/s390/block/dasd_eer.c
diff options
context:
space:
mode:
authorJan Höppner <hoeppner@linux.vnet.ibm.com>2016-10-07 17:21:24 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-10-28 10:09:03 +0200
commit1081f3a70b74b90b6db60eb1ac6cc3c480d62d57 (patch)
treeaa5f65286c5cbd566f27234d09c7386212697dad /drivers/s390/block/dasd_eer.c
parents390/dasd: Replace simple_strtoul with kstrtouint (diff)
downloadlinux-1081f3a70b74b90b6db60eb1ac6cc3c480d62d57.tar.xz
linux-1081f3a70b74b90b6db60eb1ac6cc3c480d62d57.zip
s390/dasd: Make use of dasd_set_feature() more often
When setting certain attributes, we actually set the according feature flag. Do this by using dasd_set_feature() at a few occurrences and remove duplicate code. In dasd_set_feature() dasd_find_busid() is used to retrieve the devmap for the device in question. Combined with the change above, this would require the device to be set online at least once so that a devmap is being created. Change that by using dasd_devmap_from_cdev() instead, which uses dasd_find_busid() first and will create a devmap accordingly if there is none yet. Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd_eer.c')
0 files changed, 0 insertions, 0 deletions