of: Always use 'struct device.of_node' to get device node pointer.
The following structure elements duplicate the information in 'struct device.of_node' and so are being eliminated. This patch makes all readers of these elements use device.of_node instead. (struct of_device *)->node (struct dev_archdata *)->prom_node (sparc) (struct dev_archdata *)->of_node (powerpc & microblaze) Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -1157,7 +1157,7 @@ static void ibmvfc_gather_partition_info(struct ibmvfc_host *vhost)
|
||||
static void ibmvfc_set_login_info(struct ibmvfc_host *vhost)
|
||||
{
|
||||
struct ibmvfc_npiv_login *login_info = &vhost->login_info;
|
||||
struct device_node *of_node = vhost->dev->archdata.of_node;
|
||||
struct device_node *of_node = vhost->dev->of_node;
|
||||
const char *location;
|
||||
|
||||
memset(login_info, 0, sizeof(*login_info));
|
||||
|
@@ -957,7 +957,7 @@ static void send_mad_capabilities(struct ibmvscsi_host_data *hostdata)
|
||||
struct viosrp_capabilities *req;
|
||||
struct srp_event_struct *evt_struct;
|
||||
unsigned long flags;
|
||||
struct device_node *of_node = hostdata->dev->archdata.of_node;
|
||||
struct device_node *of_node = hostdata->dev->of_node;
|
||||
const char *location;
|
||||
|
||||
evt_struct = get_event_struct(&hostdata->pool);
|
||||
|
Reference in New Issue
Block a user