From: Sebastian Ott Date: Mon, 7 Dec 2009 11:51:34 +0000 (+0100) Subject: [S390] cio: add per device initialization status flag X-Git-Tag: v2.6.33-rc1~349^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a1872d6411c7cce82c0888a4fbea23e993e051;p=pandora-kernel.git [S390] cio: add per device initialization status flag The function ccw_device_unregister has to ensure to remove all references obtained by device_add and device_initialize. Unfortunately it gets called for devices which are 1) uninitialized, 2) initialized but unregistered, and 3) registered devices. To distinguish 1) and 2) this patch introduces a new flag "initialized", which is 1 as long as we hold the initial device reference. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed