aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp')
-rw-r--r--drivers/pnp/pnpbios/bioscalls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c
index 37bacfcdbc5d..a72126180e97 100644
--- a/drivers/pnp/pnpbios/bioscalls.c
+++ b/drivers/pnp/pnpbios/bioscalls.c
@@ -283,12 +283,15 @@ int pnp_bios_dev_node_info(struct pnp_dev_node_info *data)
283static int __pnp_bios_get_dev_node(u8 *nodenum, char boot, struct pnp_bios_node *data) 283static int __pnp_bios_get_dev_node(u8 *nodenum, char boot, struct pnp_bios_node *data)
284{ 284{
285 u16 status; 285 u16 status;
286 u16 tmp_nodenum;
286 if (!pnp_bios_present()) 287 if (!pnp_bios_present())
287 return PNP_FUNCTION_NOT_SUPPORTED; 288 return PNP_FUNCTION_NOT_SUPPORTED;
288 if ( !boot && pnpbios_dont_use_current_config ) 289 if ( !boot && pnpbios_dont_use_current_config )
289 return PNP_FUNCTION_NOT_SUPPORTED; 290 return PNP_FUNCTION_NOT_SUPPORTED;
291 tmp_nodenum = *nodenum;
290 status = call_pnp_bios(PNP_GET_SYS_DEV_NODE, 0, PNP_TS1, 0, PNP_TS2, boot ? 2 : 1, PNP_DS, 0, 292 status = call_pnp_bios(PNP_GET_SYS_DEV_NODE, 0, PNP_TS1, 0, PNP_TS2, boot ? 2 : 1, PNP_DS, 0,
291 nodenum, sizeof(char), data, 65536); 293 &tmp_nodenum, sizeof(tmp_nodenum), data, 65536);
294 *nodenum = tmp_nodenum;
292 return status; 295 return status;
293} 296}
294 297