core.c (80c8ae289266529445fad030fabf5fcf01ccda0d) core.c (486a5c28c2e7d6a80c393ac7d612b77d80447b84)
1/*
2 * cb710/core.c
3 *
4 * Copyright by Michał Mirosław, 2008-2009
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 291 unchanged lines hidden (view full) ---

300 cb710_unregister_slot(chip, CB710_SLOT_MMC);
301
302#ifdef CONFIG_CB710_DEBUG_ASSUMPTIONS
303 BUG_ON(atomic_read(&chip->slot_refs_count) != 0);
304#endif
305 return err;
306}
307
1/*
2 * cb710/core.c
3 *
4 * Copyright by Michał Mirosław, 2008-2009
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 291 unchanged lines hidden (view full) ---

300 cb710_unregister_slot(chip, CB710_SLOT_MMC);
301
302#ifdef CONFIG_CB710_DEBUG_ASSUMPTIONS
303 BUG_ON(atomic_read(&chip->slot_refs_count) != 0);
304#endif
305 return err;
306}
307
308static void __devexit cb710_remove_one(struct pci_dev *pdev)
308static void cb710_remove_one(struct pci_dev *pdev)
309{
310 struct cb710_chip *chip = pci_get_drvdata(pdev);
311 unsigned long flags;
312
313 cb710_unregister_slot(chip, CB710_SLOT_SM);
314 cb710_unregister_slot(chip, CB710_SLOT_MS);
315 cb710_unregister_slot(chip, CB710_SLOT_MMC);
316#ifdef CONFIG_CB710_DEBUG_ASSUMPTIONS

--- 43 unchanged lines hidden ---
309{
310 struct cb710_chip *chip = pci_get_drvdata(pdev);
311 unsigned long flags;
312
313 cb710_unregister_slot(chip, CB710_SLOT_SM);
314 cb710_unregister_slot(chip, CB710_SLOT_MS);
315 cb710_unregister_slot(chip, CB710_SLOT_MMC);
316#ifdef CONFIG_CB710_DEBUG_ASSUMPTIONS

--- 43 unchanged lines hidden ---