hdcp1x: Define number of instances if not defined.
Some subsystem drivers have dependencies on all subcore drivers. If no subcore of that type is present, the HDCP subcore driver's TCL file won't be executing, and the XPAR_XHDCP_NUM_INSTANCES will remain undefined. This will cause a compilation error due to XHdcp1x_LookupConfig using this definition. This patch protects against such a scenario. Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com> Acked-by: Shadul Shaikh <shaduls@xilinx.com>
This commit is contained in:
parent
13caf612bc
commit
0e440b93e0
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@
|
|||
|
||||
/************************** Constant Definitions *****************************/
|
||||
|
||||
#ifndef XPAR_XHDCP_NUM_INSTANCES
|
||||
#define XPAR_XHDCP_NUM_INSTANCES 0
|
||||
#endif
|
||||
|
||||
/***************** Macros (Inline Functions) Definitions *********************/
|
||||
|
||||
/**************************** Type Definitions *******************************/
|
||||
|
|
Loading…
Add table
Reference in a new issue