sta2x11-mfd.c (a73e5df16b52a12f5210b20484e74c45ae25d04c) | sta2x11-mfd.c (4740f73fe5388ab5d22d552d2a0dacc62418a70c) |
---|---|
1/* 2 * Copyright (c) 2009-2011 Wind River Systems, Inc. 3 * Copyright (c) 2011 ST Microelectronics (Alessandro Rubini) 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * --- 75 unchanged lines hidden (view full) --- 84 return -ENOMEM; 85 INIT_LIST_HEAD(&mfd->list); 86 spin_lock_init(&mfd->lock); 87 mfd->instance = instance; 88 list_add(&mfd->list, &sta2x11_mfd_list); 89 return 0; 90} 91 | 1/* 2 * Copyright (c) 2009-2011 Wind River Systems, Inc. 3 * Copyright (c) 2011 ST Microelectronics (Alessandro Rubini) 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * --- 75 unchanged lines hidden (view full) --- 84 return -ENOMEM; 85 INIT_LIST_HEAD(&mfd->list); 86 spin_lock_init(&mfd->lock); 87 mfd->instance = instance; 88 list_add(&mfd->list, &sta2x11_mfd_list); 89 return 0; 90} 91 |
92static int __devexit mfd_remove(struct pci_dev *pdev) | 92static int mfd_remove(struct pci_dev *pdev) |
93{ 94 struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); 95 96 if (!mfd) 97 return -ENODEV; 98 list_del(&mfd->list); 99 kfree(mfd); 100 return 0; --- 367 unchanged lines hidden --- | 93{ 94 struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); 95 96 if (!mfd) 97 return -ENODEV; 98 list_del(&mfd->list); 99 kfree(mfd); 100 return 0; --- 367 unchanged lines hidden --- |