mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
mmc: vub300: Move away from using deprecated APIs
Suspend and resume of cards are handled by the protocol layer and consequently the mmc_suspend|resume_host APIs are marked as deprecated. This means we can simplify the suspend|resume callbacks by removing the use of the deprecated APIs. Cc: Tony Olech <tony.olech@elandigitalsystems.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
4d6c5d8339
commit
990b2993d1
@ -2392,26 +2392,12 @@ static void vub300_disconnect(struct usb_interface *interface)
|
|||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
static int vub300_suspend(struct usb_interface *intf, pm_message_t message)
|
static int vub300_suspend(struct usb_interface *intf, pm_message_t message)
|
||||||
{
|
{
|
||||||
struct vub300_mmc_host *vub300 = usb_get_intfdata(intf);
|
return 0;
|
||||||
if (!vub300 || !vub300->mmc) {
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
struct mmc_host *mmc = vub300->mmc;
|
|
||||||
mmc_suspend_host(mmc);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vub300_resume(struct usb_interface *intf)
|
static int vub300_resume(struct usb_interface *intf)
|
||||||
{
|
{
|
||||||
struct vub300_mmc_host *vub300 = usb_get_intfdata(intf);
|
return 0;
|
||||||
if (!vub300 || !vub300->mmc) {
|
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
struct mmc_host *mmc = vub300->mmc;
|
|
||||||
mmc_resume_host(mmc);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define vub300_suspend NULL
|
#define vub300_suspend NULL
|
||||||
|
Loading…
Reference in New Issue
Block a user