参照元

説明

引数

返り値

参考

実装

/**
 * snd_soc_register_platform - Register a platform with the ASoC core
 *
 * @dev: The device for the platform
 * @platform_drv: The driver for the platform
 */
int snd_soc_register_platform(struct device *dev,
                const struct snd_soc_platform_driver *platform_drv)
{
        struct snd_soc_platform *platform;
        int ret;
        dev_dbg(dev, "ASoC: platform register %s\n", dev_name(dev));
        platform = kzalloc(sizeof(struct snd_soc_platform), GFP_KERNEL);
        if (platform == NULL)
                return -ENOMEM;
        ret = snd_soc_add_platform(dev, platform, platform_drv);
        if (ret)
                kfree(platform);
        return ret;
}
EXPORT_SYMBOL_GPL(snd_soc_register_platform);

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-02-15 (月) 09:53:12