/* * Copyright (c) 2010, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, see . * * Author: John Fastabend */ #include #include #include #include static ATOMIC_NOTIFIER_HEAD(dcbevent_notif_chain); int register_dcbevent_notifier(struct notifier_block *nb) { return atomic_notifier_chain_register(&dcbevent_notif_chain, nb); } EXPORT_SYMBOL(register_dcbevent_notifier); int unregister_dcbevent_notifier(struct notifier_block *nb) { return atomic_notifier_chain_unregister(&dcbevent_notif_chain, nb); } EXPORT_SYMBOL(unregister_dcbevent_notifier); int call_dcbevent_notifiers(unsigned long val, void *v) { return atomic_notifier_call_chain(&dcbevent_notif_chain, val, v); } witch'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2016-12-08 11:23:49 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-12-12 16:30:05 +0100
commitf397c8d80a5e413984bd9ccdf4161c7156b365ce (patch)
tree9767f0418fe8ef53d6571fefc8b7b53558b7fce0
parentff6af28faff53a7389230026b83e543385f7b21d (diff)
mmc: block: Move files to core
Once upon a time it made sense to keep the mmc block device driver and its related code, in its own directory called card. Over time, more an more functions/structures have become shared through generic mmc header files, between the core and the card directory. In other words, the relationship between them has become closer. By sharing functions/structures via generic header files, it becomes easy for outside users to abuse them. In a way to avoid that from happen, let's move the files from card directory into the core directory, as it enables us to move definitions of functions/structures into mmc core specific header files. Note, this is only the first step in providing a cleaner mmc interface for outside users. Following changes will do the actual cleanup, as that is not part of this change. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>