X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=drivers%2Finput%2Fjoystick%2Fpsxpad-spi.c;fp=drivers%2Finput%2Fjoystick%2Fpsxpad-spi.c;h=092096ee06b96c0cf6abe64e0fbc6d0fc624e906;hb=c32e2c9bf320111fd7b82afc2ea8db99dc8e2fba;hp=28b473f6cbb631e53d3268467a118ffabf6a9b6f;hpb=cd2c21f7628701f338ef4bbf7473246abbd356e9;p=mirror_ubuntu-bionic-kernel.git diff --git a/drivers/input/joystick/psxpad-spi.c b/drivers/input/joystick/psxpad-spi.c index 28b473f6cbb6..092096ee06b9 100644 --- a/drivers/input/joystick/psxpad-spi.c +++ b/drivers/input/joystick/psxpad-spi.c @@ -292,7 +292,7 @@ static int psxpad_spi_probe(struct spi_device *spi) if (!pad) return -ENOMEM; - pdev = input_allocate_polled_device(); + pdev = devm_input_allocate_polled_device(&spi->dev); if (!pdev) { dev_err(&spi->dev, "failed to allocate input device\n"); return -ENOMEM;