From: Johan Hovold Date: Wed, 2 Sep 2015 16:03:20 +0000 (+0200) Subject: greybus: es1: fix build-time cport constraint X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=239adcf6bd68dd7b1910f236e7f2854de535e7aa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: es1: fix build-time cport constraint The CPort count of es1 is now defined by CPORT_COUNT. Signed-off-by: Johan Hovold Reviewed-by: Viresh Kumar --- diff --git a/drivers/staging/greybus/es1.c b/drivers/staging/greybus/es1.c index f049d655b82e..2b4bb075b9e6 100644 --- a/drivers/staging/greybus/es1.c +++ b/drivers/staging/greybus/es1.c @@ -556,7 +556,7 @@ static int ap_probe(struct usb_interface *interface, int i; /* We need to fit a CPort ID in one byte of a message header */ - BUILD_BUG_ON(CPORT_ID_MAX > U8_MAX); + BUILD_BUG_ON(CPORT_COUNT > U8_MAX + 1); udev = usb_get_dev(interface_to_usbdev(interface));