Message ID | 20240223-sam-fix-sparc32-all-builds-v1-4-5c60fd5c9250@ravnborg.org |
---|---|
State | New |
Headers | show |
Series | sparc32: build fixes for all{yes,mod}config builds | expand |
On 2/23/24 11:36, Sam Ravnborg via B4 Relay wrote: > From: Sam Ravnborg <sam@ravnborg.org> > > Fix the followig build error: > uhci-grlib.c:92:29: error: invalid use of undefined type 'struct platform_device' > > The fix was straightforward, and no attempt was made to understand why > the build failed. > > Signed-off-by: Sam Ravnborg <sam@ravnborg.org> > Cc: Andreas Larsson <andreas@gaisler.com> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> This looks good but the same patch is already in linux-next, courtesy of Andreas. > --- > drivers/usb/host/uhci-grlib.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/host/uhci-grlib.c b/drivers/usb/host/uhci-grlib.c > index ac3fc5970315..cfebb833668e 100644 > --- a/drivers/usb/host/uhci-grlib.c > +++ b/drivers/usb/host/uhci-grlib.c > @@ -22,6 +22,7 @@ > #include <linux/of_irq.h> > #include <linux/of_address.h> > #include <linux/of_platform.h> > +#include <linux/platform_device.h> > > static int uhci_grlib_init(struct usb_hcd *hcd) > { >
diff --git a/drivers/usb/host/uhci-grlib.c b/drivers/usb/host/uhci-grlib.c index ac3fc5970315..cfebb833668e 100644 --- a/drivers/usb/host/uhci-grlib.c +++ b/drivers/usb/host/uhci-grlib.c @@ -22,6 +22,7 @@ #include <linux/of_irq.h> #include <linux/of_address.h> #include <linux/of_platform.h> +#include <linux/platform_device.h> static int uhci_grlib_init(struct usb_hcd *hcd) {