本文整理汇总了C++中del_mtd_partitions函数的典型用法代码示例。如果您正苦于以下问题:C++ del_mtd_partitions函数的具体用法?C++ del_mtd_partitions怎么用?C++ del_mtd_partitions使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了del_mtd_partitions函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: bast_flash_remove
static int bast_flash_remove(struct platform_device *pdev)
{
struct bast_flash_info *info = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
if (info == NULL)
return 0;
if (info->map.virt != NULL)
iounmap(info->map.virt);
if (info->mtd) {
del_mtd_partitions(info->mtd);
map_destroy(info->mtd);
}
kfree(info->partitions);
if (info->area) {
release_resource(info->area);
kfree(info->area);
}
kfree(info);
return 0;
}
开发者ID:WiseMan787,项目名称:ralink_sdk,代码行数:28,代码来源:bast-flash.c
示例2: s3c6410_nand_exit
static void s3c6410_nand_exit(void)
{
del_mtd_partitions(s3c_mtd);
kfree(s3c_mtd);
kfree(s3c_nand);
iounmap(s3c_nand_regs);
}
开发者ID:uwyyk,项目名称:LINUX_DRIVERS,代码行数:7,代码来源:nand.c
示例3: of_flash_remove
static int of_flash_remove(struct of_device *dev)
{
struct of_flash *info;
info = dev_get_drvdata(&dev->dev);
if (!info)
return 0;
dev_set_drvdata(&dev->dev, NULL);
if (info->mtd) {
if (OF_FLASH_PARTS(info)) {
del_mtd_partitions(info->mtd);
kfree(OF_FLASH_PARTS(info));
} else {
del_mtd_device(info->mtd);
}
map_destroy(info->mtd);
}
if (info->map.virt)
iounmap(info->map.virt);
if (info->res) {
release_resource(info->res);
kfree(info->res);
}
return 0;
}
开发者ID:E-LLP,项目名称:n900,代码行数:29,代码来源:physmap_of.c
示例4: armadillo_mtd_remove
static int __devexit
armadillo_mtd_remove(struct platform_device *pdev)
{
struct armadillo_flash_info *info = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
if (info) {
if (info->mtd) {
del_mtd_partitions(info->mtd);
map_destroy(info->mtd);
}
if (info->parts)
kfree(info->parts);
release_resource(info->res);
kfree(info->res);
if (info->plat && info->plat->exit)
info->plat->exit();
kfree(info);
}
return 0;
}
开发者ID:miettal,项目名称:armadillo420_standard,代码行数:26,代码来源:armadillo.c
示例5: of_physmap_remove
static int of_physmap_remove(struct of_device *dev)
{
struct physmap_flash_info *info;
info = dev_get_drvdata(&dev->dev);
if (info == NULL)
return 0;
dev_set_drvdata(&dev->dev, NULL);
if (info->mtd != NULL) {
#ifdef CONFIG_MTD_PARTITIONS
if (info->nr_parts) {
del_mtd_partitions(info->mtd);
kfree(info->parts);
} else {
del_mtd_device(info->mtd);
}
#else
del_mtd_device(info->mtd);
#endif
map_destroy(info->mtd);
}
if (info->map.virt != NULL)
iounmap(info->map.virt);
if (info->res != NULL) {
release_resource(info->res);
kfree(info->res);
}
return 0;
}
开发者ID:StephenMacras,项目名称:dsl-n55u-bender,代码行数:33,代码来源:physmap_of.c
示例6: txx9ndfmc_remove
static int __exit txx9ndfmc_remove(struct platform_device *dev)
{
struct txx9ndfmc_drvdata *drvdata = platform_get_drvdata(dev);
int i;
platform_set_drvdata(dev, NULL);
if (!drvdata)
return 0;
for (i = 0; i < MAX_TXX9NDFMC_DEV; i++) {
struct mtd_info *mtd = drvdata->mtds[i];
struct nand_chip *chip;
struct txx9ndfmc_priv *txx9_priv;
if (!mtd)
continue;
chip = mtd->priv;
txx9_priv = chip->priv;
#ifdef CONFIG_MTD_PARTITIONS
del_mtd_partitions(mtd);
kfree(drvdata->parts[i]);
#endif
del_mtd_device(mtd);
kfree(txx9_priv->mtdname);
kfree(txx9_priv);
}
return 0;
}
开发者ID:325116067,项目名称:semc-qsd8x50,代码行数:28,代码来源:txx9ndfmc.c
示例7: armflash_cfi_exit
static void armflash_cfi_exit(void)
{
if (mtd) {
del_mtd_partitions(mtd);
map_destroy(mtd);
}
}
开发者ID:nhanh0,项目名称:hah,代码行数:7,代码来源:integrator-flash.c
示例8: pb1xxx_mtd_cleanup
static void __exit pb1xxx_mtd_cleanup(void)
{
if (pb1xxx_mtd) {
del_mtd_partitions(pb1xxx_mtd);
map_destroy(pb1xxx_mtd);
iounmap((void *) pb1xxx_mtd_map.virt);
}
}
开发者ID:GodFox,项目名称:magx_kernel_xpixl,代码行数:8,代码来源:pb1xxx-flash.c
示例9: cleanup_dnpc
static void __exit cleanup_dnpc(void)
{
if(merged_mtd) {
del_mtd_partitions(merged_mtd);
mtd_concat_destroy(merged_mtd);
}
if (mymtd) {
del_mtd_partitions(mymtd);
map_destroy(mymtd);
}
if (dnpc_map.virt) {
iounmap(dnpc_map.virt);
dnpc_unmap_flash();
dnpc_map.virt = NULL;
}
}
开发者ID:StephenMacras,项目名称:dsl-n55u-bender,代码行数:17,代码来源:dilnetpc.c
示例10: lart_flash_exit
void __exit lart_flash_exit (void)
{
#ifndef HAVE_PARTITIONS
del_mtd_device (&mtd);
#else
del_mtd_partitions (&mtd);
#endif
}
开发者ID:smx-smx,项目名称:dsl-n55u,代码行数:8,代码来源:lart.c
示例11: alchemy_mtd_cleanup
static void __exit alchemy_mtd_cleanup(void)
{
if (mymtd) {
del_mtd_partitions(mymtd);
map_destroy(mymtd);
iounmap(alchemy_map.virt);
}
}
开发者ID:ena30,项目名称:snake-os,代码行数:8,代码来源:alchemy-flash.c
示例12: cleanup_mpc1211_maps
static void __exit cleanup_mpc1211_maps(void)
{
if (parsed_parts)
del_mtd_partitions(flash_mtd);
else
del_mtd_device(flash_mtd);
map_destroy(flash_mtd);
}
开发者ID:maliyu,项目名称:SOM2416,代码行数:8,代码来源:mpc1211.c
示例13: db1550_mtd_cleanup
static void __exit db1550_mtd_cleanup(void)
{
if (mymtd) {
del_mtd_partitions(mymtd);
map_destroy(mymtd);
iounmap((void *) db1550_map.virt);
}
}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:8,代码来源:db1550-flash.c
示例14: omap_toto_mtd_cleanup
static void __exit omap_toto_mtd_cleanup(void)
{
if (flash_mtd) {
del_mtd_partitions(flash_mtd);
map_destroy(flash_mtd);
kfree(parsed_parts);
}
}
开发者ID:maliyu,项目名称:SOM2416,代码行数:8,代码来源:omap-toto-flash.c
示例15: nflash_mtd_exit
static void __exit
nflash_mtd_exit(void)
{
#ifdef CONFIG_MTD_PARTITIONS
del_mtd_partitions(&nflash.mtd);
#else
del_mtd_device(&nflash.mtd);
#endif
}
开发者ID:Antares84,项目名称:asuswrt-merlin,代码行数:9,代码来源:bcm_nflash.c
示例16: cleanup_beech_mtd
static void __exit
cleanup_beech_mtd(void)
{
if (beech_mtd) {
del_mtd_partitions(beech_mtd);
map_destroy(beech_mtd);
iounmap((void *) beech_mtd_map.virt);
}
}
开发者ID:SimonKagstrom,项目名称:mci500h-linux-2.4.27,代码行数:9,代码来源:beech-mtd.c
示例17: db1x00_mtd_cleanup
static void __exit db1x00_mtd_cleanup(void)
{
if (db1xxx_mtd) {
del_mtd_partitions(db1xxx_mtd);
map_destroy(db1xxx_mtd);
if (parsed_parts)
kfree(parsed_parts);
}
}
开发者ID:FelipeFernandes1988,项目名称:Alice-1121-Modem,代码行数:9,代码来源:db1x00-flash.c
示例18: cleanup_elan_104nc
static void cleanup_elan_104nc(void)
{
if( all_mtd ) {
del_mtd_partitions( all_mtd );
map_destroy( all_mtd );
}
iounmap(iomapadr);
}
开发者ID:Antonio-Zhou,项目名称:Linux-2.6.11,代码行数:9,代码来源:elan-104nc.c
示例19: cleanup_redwood_flash
static void __exit cleanup_redwood_flash(void)
{
if (redwood_mtd) {
del_mtd_partitions(redwood_mtd);
/* moved iounmap after map_destroy - armin */
map_destroy(redwood_mtd);
iounmap((void *)redwood_flash_map.virt);
}
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:9,代码来源:redwood.c
示例20: mtx1_mtd_cleanup
static void __exit mtx1_mtd_cleanup(void)
{
if (mtx1_mtd) {
del_mtd_partitions(mtx1_mtd);
map_destroy(mtx1_mtd);
}
if (mtx1_map.virt)
iounmap(mtx1_map.virt);
}
开发者ID:WiseMan787,项目名称:ralink_sdk,代码行数:9,代码来源:mtx-1_flash.c
注:本文中的del_mtd_partitions函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论