From: Konrad Rzeszutek Wilk Date: Tue, 31 Dec 2013 20:55:39 +0000 (-0500) Subject: xen/grants: Remove gnttab_max_grant_frames dependency on gnttab_init. X-Git-Tag: v3.14-rc1~126^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f256020cc599bc0b736c57d702b864dbbefcefb;p=pandora-kernel.git xen/grants: Remove gnttab_max_grant_frames dependency on gnttab_init. The function gnttab_max_grant_frames() returns the maximum amount of frames (pages) of grants we can have. Unfortunatly it was dependent on gnttab_init() having been run before to initialize the boot max value (boot_max_nr_grant_frames). This meant that users of gnttab_max_grant_frames would always get a zero value if they called before gnttab_init() - such as 'platform_pci_init' (drivers/xen/platform-pci.c). Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: David Vrabel Acked-by: Stefano Stabellini --- Reading git-diff-tree failed