diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-07-15 09:59:41 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-07-19 16:17:32 +0200 |
commit | 3a1e341c5687b4e8fe51ca1c933b1f23ab3304c1 (patch) | |
tree | c5c159dc57ca9f07fb6b399c1d162ecd625ac55e /sound/drivers/pcsp/pcsp_input.h | |
parent | ed16a22b09002fe1bef302242a0ac4a00f44b20d (diff) | |
download | linux-next-3a1e341c5687b4e8fe51ca1c933b1f23ab3304c1.tar.gz |
ALSA: pcsp: Allocate resources with device-managed APIs
Use the new snd_devm_card_new() for the card object allocation and the
devres version for the input device, and clean up the superfluous
remove callback.
Link: https://lore.kernel.org/r/20210715075941.23332-80-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/pcsp/pcsp_input.h')
-rw-r--r-- | sound/drivers/pcsp/pcsp_input.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/drivers/pcsp/pcsp_input.h b/sound/drivers/pcsp/pcsp_input.h index e80079b38a56..42bfc9eab6eb 100644 --- a/sound/drivers/pcsp/pcsp_input.h +++ b/sound/drivers/pcsp/pcsp_input.h @@ -9,7 +9,6 @@ #define __PCSP_INPUT_H__ int pcspkr_input_init(struct input_dev **rdev, struct device *dev); -int pcspkr_input_remove(struct input_dev *dev); void pcspkr_stop_sound(void); #endif |