rt1308-sdw.c (9f771739a04919226081a107167596de75108fbb) | rt1308-sdw.c (3f3d66ba998fb079c1239430e96e3b138bc63166) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8#include <linux/delay.h> --- 701 unchanged lines hidden (view full) --- 710{ 711 struct regmap *regmap; 712 713 /* Regmap Initialization */ 714 regmap = devm_regmap_init_sdw(slave, &rt1308_sdw_regmap); 715 if (IS_ERR(regmap)) 716 return PTR_ERR(regmap); 717 | 1// SPDX-License-Identifier: GPL-2.0 2// 3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8#include <linux/delay.h> --- 701 unchanged lines hidden (view full) --- 710{ 711 struct regmap *regmap; 712 713 /* Regmap Initialization */ 714 regmap = devm_regmap_init_sdw(slave, &rt1308_sdw_regmap); 715 if (IS_ERR(regmap)) 716 return PTR_ERR(regmap); 717 |
718 rt1308_sdw_init(&slave->dev, regmap, slave); 719 720 return 0; | 718 return rt1308_sdw_init(&slave->dev, regmap, slave); |
721} 722 723static int rt1308_sdw_remove(struct sdw_slave *slave) 724{ 725 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(&slave->dev); 726 727 if (rt1308->first_hw_init) 728 pm_runtime_disable(&slave->dev); --- 74 unchanged lines hidden --- | 719} 720 721static int rt1308_sdw_remove(struct sdw_slave *slave) 722{ 723 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(&slave->dev); 724 725 if (rt1308->first_hw_init) 726 pm_runtime_disable(&slave->dev); --- 74 unchanged lines hidden --- |