gx-suspmod.c (27eb2c4b3d3e13f376a359e293c212a2e9407af5) | gx-suspmod.c (d5b73cd870e2b049ef566aec2791dbf5fd26a7ec) |
---|---|
1/* 2 * Cyrix MediaGX and NatSemi Geode Suspend Modulation 3 * (C) 2002 Zwane Mwaikambo <zwane@commfireservices.com> 4 * (C) 2002 Hiroshi Miura <miura@da-cha.org> 5 * All Rights Reserved 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 452 unchanged lines hidden (view full) --- 461 return -ENODEV; 462 463 /* check whether module parameters are sane */ 464 if (max_duration > 0xff) 465 max_duration = 0xff; 466 467 pr_debug("geode suspend modulation available.\n"); 468 | 1/* 2 * Cyrix MediaGX and NatSemi Geode Suspend Modulation 3 * (C) 2002 Zwane Mwaikambo <zwane@commfireservices.com> 4 * (C) 2002 Hiroshi Miura <miura@da-cha.org> 5 * All Rights Reserved 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 452 unchanged lines hidden (view full) --- 461 return -ENODEV; 462 463 /* check whether module parameters are sane */ 464 if (max_duration > 0xff) 465 max_duration = 0xff; 466 467 pr_debug("geode suspend modulation available.\n"); 468 |
469 params = kzalloc(sizeof(struct gxfreq_params), GFP_KERNEL); | 469 params = kzalloc(sizeof(*params), GFP_KERNEL); |
470 if (params == NULL) 471 return -ENOMEM; 472 473 params->cs55x0 = gx_pci; 474 gx_params = params; 475 476 /* keep cs55x0 configurations */ 477 pci_read_config_byte(params->cs55x0, PCI_SUSCFG, &(params->pci_suscfg)); --- 29 unchanged lines hidden --- | 470 if (params == NULL) 471 return -ENOMEM; 472 473 params->cs55x0 = gx_pci; 474 gx_params = params; 475 476 /* keep cs55x0 configurations */ 477 pci_read_config_byte(params->cs55x0, PCI_SUSCFG, &(params->pci_suscfg)); --- 29 unchanged lines hidden --- |